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

Can't start after installation #370

Closed
zjy365 opened this issue Nov 16, 2023 · 7 comments · Fixed by #376 or #377
Closed

Can't start after installation #370

zjy365 opened this issue Nov 16, 2023 · 7 comments · Fixed by #376 or #377
Labels
bug Something isn't working

Comments

@zjy365
Copy link

zjy365 commented Nov 16, 2023

import path from "path";
^^^^^^

SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1153:20)
at Module._compile (node:internal/modules/cjs/loader:1197:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at module.exports (/Users/jingyang/work/sealos/docs/website/node_modules/import-fresh/index.js:32:59)
at normalizePluginConfig (/Users/jingyang/work/sealos/docs/website/node_modules/@docusaurus/core/lib/server/plugins/configs.js:45:57)
at /Users/jingyang/work/sealos/docs/website/node_modules/@docusaurus/core/lib/server/plugins/configs.js:99:60
[INFO] Docusaurus version: 2.4.3
Node version: v20.4.0
 ELIFECYCLE  Command failed with exit code 1.

@overdone
Copy link

I have the same issue. Maybe due to incompatibility with version 2 of Docusaurus. Version 0.36 works fine

@bentookey-yotta
Copy link

Same issue here on Docusaurus v2.4.3.

@weareoutman weareoutman added the bug Something isn't working label Nov 21, 2023
@zjy365
Copy link
Author

zjy365 commented Nov 22, 2023

I have the same issue. Maybe due to incompatibility with version 2 of Docusaurus. Version 0.36 works fine

Thank you very much, it can be used after lowering the version

@weareoutman
Copy link
Member

Should be fixed in v0.37.5

@societymartingale
Copy link

societymartingale commented Nov 27, 2023

This error is still occurring with docusaurus-search-local v0.38.0 and docusaurus v2.4.3

@weareoutman
Copy link
Member

@societymartingale Try 0.38.1

@societymartingale
Copy link

@weareoutman , 0.38.1 worked, thanks!

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
5 participants