This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
<script> tag within .vue file does not support src attribute #100
Closed
Description
Expected behavior
This should work:
// file: checkbox.vue
<template>
<div class="mdc-form-field"> </div>
</template>
<script src="./checkbox.js"></script>
Actual behavior
Compiling the vue file failed with these words:
(vue plugin) [rollup-plugin-vue] Generated render function is injected in the default export of .vue file (lang: js). In /home/harshal/personal/vue-toolkit/src/checkbox/checkbox.vue, it cannot find 'export defaults'.
Steps to reproduce the behavior
I believe <script>
tags in .vue
files do not support src
attribute.