Open tedik123 opened 1 year ago
+1 vite下的
Uncaught SyntaxError: The requested module '/node_modules/jscharting/dist/jscharting.js?v=296b01d1' does not provide an export named 'Chart' (at jscharting.vue:6:10)
Uncaught SyntaxError: ambiguous indirect export: Chart [jscharting.vue:2:10](http://0.0.0.0:5173/node_modules/jscharting-vue/src/components/jscharting.vue)
Changing vite config fixed issue
export default defineConfig({
// ...
optimizeDeps: {
include: ['jscharting'],
},
})
I copied and pasted the example in the vue3 documentation and I keep getting: Uncaught SyntaxError: The requested module '/node_modules/jscharting/dist/jscharting.js?v=c78523e5' does not provide an export named 'Chart' (at jscharting.vue:6:10)