You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is an issue with quasar-ui-qmediaplayer or with this project.
I have a quasar site with quasar-ui-qmediaplayer package, and when I try to build:ssg I get the following error:
[ Error: /Users/xxx/xxx/xxx-site/node_modules/@quasar/quasar-ui-qmediaplayer/dist/index.cjs.js
require() of ES modules is not supported.
require() of /Users/xxx/xxx/xxx-site/node_modules/@quasar/quasar-ui-qmediaplayer/dist/index.cjs.js from /Users/xxx/xxx/xxx-site/node_modules/.cache/quasar-app-extension-ssg 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.cjs.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/xxx/xxx/xxx-site/node_modules/@quasar/quasar-ui-qmediaplayer/package.json.
If I rename index.cjs.js inside node_modules to index.cjs and update its package.json file with "main": "index.cjs" the build passes. This might indicate that this is an issue with the other package.
However, I believe that their build is standard and these files are named like this by default.
Is this something that this project can fix, or is there something wrong with quasar-ui-qmediaplayer's build?
The text was updated successfully, but these errors were encountered:
I found the same issue which happens with ssr mode too.
I believe that the filenames are fine. By referring to the Quasar components build standard, it looks like the "type": "module" line should be removed in the package.json file in order to use their component at server-side.
Not sure if this is an issue with
quasar-ui-qmediaplayer
or with this project.I have a quasar site with
quasar-ui-qmediaplayer
package, and when I try tobuild:ssg
I get the following error:If I rename
index.cjs.js
insidenode_modules
toindex.cjs
and update itspackage.json
file with"main": "index.cjs"
the build passes. This might indicate that this is an issue with the other package.However, I believe that their build is standard and these files are named like this by default.
Is this something that this project can fix, or is there something wrong with
quasar-ui-qmediaplayer
's build?The text was updated successfully, but these errors were encountered: