We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I refer to official documents and Vue Blog to expand the default theme, an error occurred.
When I use createContentLoader in xxx.data.mts, the console will output a syntax error.
createContentLoader
xxx.data.mts
It can be reproduced in the following Repository: xiaocuo.wang.
Expect normal operation without errors.
System: OS: macOS 13.5.2 CPU: (8) arm64 Apple M1 Memory: 95.55 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.1/bin/yarn npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm pnpm: 8.7.5 - ~/.nvm/versions/node/v16.17.1/bin/pnpm Browsers: Chrome: 117.0.5938.149 Safari: 16.6 npmPackages: vitepress: ^1.0.0-rc.20 => 1.0.0-rc.20
The text was updated successfully, but these errors were encountered:
Hi, I currently face the same issue, did you solve this? @wangxiaocuo
Sorry, something went wrong.
Nope😭 @Fancy11111
Use .js or .ts for now. You'll need to put "type": "module" in your nearest package.json. Will be fixed in next version.
.js
.ts
"type": "module"
It worked. Thank you. @brc-dd
Successfully merging a pull request may close this issue.
Describe the bug
When I refer to official documents and Vue Blog to expand the default theme, an error occurred.
When I use
createContentLoader
inxxx.data.mts
, the console will output a syntax error.Reproduction
It can be reproduced in the following Repository: xiaocuo.wang.
Expected behavior
Expect normal operation without errors.
System Info
Additional context
Validations
The text was updated successfully, but these errors were encountered: