Skip to content
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

problem with quasar dev -m ssr #356

Open
GoldMyr1994 opened this issue Mar 28, 2022 · 4 comments
Open

problem with quasar dev -m ssr #356

GoldMyr1994 opened this issue Mar 28, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@GoldMyr1994
Copy link

Describe the bug
When i run quasar dev -m ssr i get the following error on the browser

Must use import to load ES Module: /Users/mauroconte/Desktop/org-noflags/noflags-quasar/node_modules/@quasar/quasar-ui-qmediaplayer/dist/index.cjs.js require() of ES modules is not supported. require() of /Users/mauroconte/Desktop/org-noflags/noflags-quasar/node_modules/@quasar/quasar-ui-qmediaplayer/dist/index.cjs.js from /Users/mauroconte/Desktop/org-noflags/noflags-quasar 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/mauroconte/Desktop/org-noflags/noflags-quasar/node_modules/@quasar/quasar-ui-qmediaplayer/package.json.

To Reproduce
Steps to reproduce the behavior:

  1. yarn create quasar (I created a basic project named quasar-project)
  2. install quasar-ui-qmediaplayer using boot file following instaction here https://qmediaplayer.netlify.app/all-about-qmediaplayer/installation-types#Uninstall
  3. quasar dev -m ssr
  4. i get the error reported above in the browser and in the console

Expected behavior
it should work without errors

Desktop (please complete the following information):

  • OS: MacBookProM1
  • Browser Chrome
  • Version Versione 99.0.4844.83 (Build ufficiale) (arm64)

Additional context
I red the error and it is about 'type="module"'. In my package json i don't have that. I tried to remove from the package json of quasar-ui-qmediaplayer inside node_modules folder and it seems to work but i can't do like.

@hawkeye64
Copy link
Member

Are you using app-vite?

@GoldMyr1994
Copy link
Author

No, i don't kwnow what is app-vite but i'm not using it.
As explained i'm trying with a empty quasar project, nothing added except quasar-ui-qmediaplayer

@hawkeye64
Copy link
Member

I'll be looking into this further as time permits.

@tomtomcrypto
Copy link

tomtomcrypto commented May 8, 2024

Seems this extension is abandonned ? Does somebody have a workaround to make it work with SSR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants