-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error importing the lib in a quasar app #113
Comments
@isbincApps thanks for the report. will fix soon |
@isbincApps should be fixed on latest version! -- |
thanks, also is happening this error Unexpected token '.' |
Can you give me a reproduction? It works fine for me. |
|
const isHtml5SelectField = component === 'select' && (isWhat.isArray(slot) || isWhat.isArray(slots?.default)); thats the error |
@isbincApps ok so it's not expecting the Is your project a JS only Quasar project? In that case, I'm not sure if you have a |
yes, my project is only js and it doesn't have a tsconfig.json file |
@isbincApps sorry I haven't found the time yet to try and set up a JS only project and reproduce this issue. if you could provide me with a zip with such a project (excluding node_modules folder), which I can just open, |
A similar issue happens to me,
|
Show me the problem was fixed after I manually (via https://babeljs.io/) transpired this file and importing CJS file not es-module file, like so |
hi bro, this error is happening is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules
Instead rename index.umd.js to end in .cjs, change the requiring code to use import(), or remove "type": "module".
The text was updated successfully, but these errors were encountered: