FranckFreiburger / vue3-sfc-loader

Single File Component loader for Vue2 and Vue3. Load .vue files directly from your HTML. No node.js environment, no build step.
MIT License
1.19k stars 127 forks source link

Poor compatibility of v0.8.0 version #81

Closed gao2009ss closed 3 years ago

gao2009ss commented 3 years ago

Poor compatibility of v0.8.0 version


v0.7.3

Chromium :69.0.3497.81 compatible Firefox : 59.0.1 compatible


v0.8.0

Chromium :69.0.3497.81 Not compatible Firefox : 59.0.1 Not compatible

error Uncaught SyntaxError: Unexpected token Uncaught TypeError: Cannot destructure property loadModule of 'undefined' or 'null'.

FranckFreiburger commented 3 years ago

Poor issue description ...

gao2009ss commented 3 years ago

aaaa

FranckFreiburger commented 3 years ago

Please provide a complete example so that I can reproduce the problem.

gao2009ss commented 3 years ago

`

`

myComponent.vue `

` Browser version: Chromium 69.0.3497.81 Firefox 59.0.1 vue3-sfc-loader v0.7.3 run successfully vue3-sfc-loader v0.8.0 run error
FranckFreiburger commented 3 years ago

Current browserslist is "> 1%, last 2 versions, Firefox ESR, not dead, not ie 11" Maybe Chromium 69.0.3497.81 and Firefox 59.0.1 are out of this browserslist range.

You can try to build your own vue3-sfc-loader version with a different browserslist range. See https://github.com/FranckFreiburger/vue3-sfc-loader#build-your-own-version

FranckFreiburger commented 3 years ago

Have you tried to compile your own version of vue3-sfc-loader with a different browserslist range ?

FranckFreiburger commented 3 years ago

https://github.com/FranckFreiburger/vue3-sfc-loader/releases/tag/v0.8.4