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

SSR is not working in 2.0.0-beta.7 #379

Open
karimi opened this issue Sep 22, 2022 · 6 comments
Open

SSR is not working in 2.0.0-beta.7 #379

karimi opened this issue Sep 22, 2022 · 6 comments
Labels

Comments

@karimi
Copy link

karimi commented Sep 22, 2022

I'm using @quasar/quasar-app-extension-qmarkdown": "^2.0.0-beta.7" with quasar v2 and Vue3. It works as expected when runningquasar dev
However when I try to run quasar dev -m ssr I get the following error:

(node:13486) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/Users/---/Desktop/dev/docify/quasar_site/node_modules/@quasar/quasar-app-extension-qmarkdown/src/boot/register.js:1
import { boot } from 'quasar/wrappers'
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at compileFunction (<anonymous>)
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1032:15)
    at Module._compile (node:internal/modules/cjs/loader:1067:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:168:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
    at async Promise.all (index 0)
error Command failed with exit code 1.

I've installed qmarkdown using quasar cli and I'm suing Node v16.14.0

Thanks

@nucle
Copy link

nucle commented Oct 15, 2022

Hi,
will take a look.
Sorry for the late answer.

BR,
nucle

@nucle nucle added the Qv2 label Oct 19, 2022
@matbjo-dev
Copy link

matbjo-dev commented Oct 30, 2022

Any solution to this issue with SSR? Also issue with SSG. Thanks for the plugin.

@syserr0r
Copy link

FWIW this only applies if using quasar ext add @quasar/qmarkdown@next, if one manually installs @quasar/quasar-ui-qmarkdown@next and generates a bootfile it works fine in SSR.

@HoboDev
Copy link

HoboDev commented Jun 21, 2023

Do you have an example? I can get it to run either way.

@thiu
Copy link

thiu commented Dec 7, 2023

Still no solution for this?

@mony-fx
Copy link

mony-fx commented Apr 18, 2024

Anyone getting this to work ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants