vue3-tsx icon indicating copy to clipboard operation
vue3-tsx copied to clipboard

error : Uncaught SyntaxError: import not found: default

Open textproofreading opened this issue 4 years ago • 0 comments

hi,

After running this project , there is a error message showed in : web console

Uncaught SyntaxError: import not found: default in main.ts:7

the line 7 is :

import store from './store';

Append

The above problem is solved after remove the legacy *.js code .

There still has some warning message

`[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance. at <RouterLink to="/" > at <App> vue.js:1066:17

[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance. at <RouterLink to="/about" > at <App> vue.js:1066:17

[Vue warn]: Component "default" in record with path "/" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')"? This will break in production if not fixed. vue.js:1066:17

`

thanks for any help in advance .

textproofreading avatar Aug 19 '20 08:08 textproofreading