-
Notifications
You must be signed in to change notification settings - Fork 156
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
Completely broken installation with pnpm #970
Comments
I think the cause is the use of micromark 4.0.0 via nuxt content
I suspect this is also related to the below issue, as I was seeing the same errors as well at the same time Looks like its being pulled in via remark-mdc 1.2.0 It looks like the main branch of nuxt content also has it listed as a dependency although that hasn't made it's way through to a release yet, but it's still being pulled in via remark-mdc my guess is when remark-mdc was upped from 1.1.3 to 1.2.0 that's when it made it's way in |
@grbd nuxt/content#2254 (comment) seems to be alternative solution that doesn't involve overriding versions. |
Yep confirmed the alias approach works for me too with pnpm |
Describe the bug
When installing with pnpm, the installation is completely broken and refuses to launch.
Steps to reproduce
pnpm dlx nuxi init docs -t themes/docus
(npx
produces the same result)cd docs; pnpm dev
Expected behaviour
Dev server starts up and you see Docus app in its default configuration.
Actual behaviour
Dev server starts up, but immediately throws a bunch of errors and crashes with error.
Accessing
/
returns:Console output
Example code
https://codesandbox.io/p/sandbox/upbeat-chebyshev-639jvp
Environment
Codesandbox
Dev machine
Additional context
When installing with
npm
, there also a lot of warnings, but no errors, and it runs.Also, I think I managed to get it to work with the following steps:
strict-peer-dependencies=false
to.npmrc
pnpm-lock.yaml
andnode_modules
(if exists)npm
node_modules
againpnpm import
The text was updated successfully, but these errors were encountered: