Geequlim / ECMAScript

Javascript binding for godotengine
MIT License
959 stars 84 forks source link

dev is ok , when i build get error below #163

Closed analysisi closed 11 months ago

analysisi commented 11 months ago

import { ColorPicker } from "vue3-colorpicker"; ^^^^^^^^^^^ SyntaxError: Named export 'ColorPicker' not found. The requested module 'vue3-colorpicker' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using:

import pkg from 'vue3-colorpicker'; const { ColorPicker } = pkg;

why-try313 commented 10 months ago

@analysisi CommonJS is a NodeJS module system, while I agree it's not the best scenario ES6 can still be used as a solution Please see Do's and dont's of the "Importing modules" section