-
-
Notifications
You must be signed in to change notification settings - Fork 634
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
not work with nuxt 3.7 (Could not resolve import "micromark/lib/postprocess.js"
)
#2254
Comments
#2253 might fix that... Not sure though. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
As a temporary workaround, you can add this to your export default defineNuxtConfig({
alias: {
"micromark/lib/preprocess.js": "micromark",
"micromark/lib/postprocess.js": "micromark",
},
}); Issue will hopefully be resolved with #2255 |
Could not resolve import "micromark/lib/postprocess.js"
)
The fix is released on the edge channel. Update: fix link |
the edge channel link is broken, try this link https://content.nuxtjs.org/guide/migration/edge-channel |
Thanks for your job. Now I use edge channel. It's normal🫡🫡🫡 |
I had the same issue. Using the edge channel fixed it. However, a new (similar) issue popped up. Cannot find module '[path]/.nuxt/dev/highlighter.mjs' imported from [path]/.nuxt/dev/index.mjs :( |
@veritymedia did you try to remove lock file and re-install deps? |
@farnabaz Yes, I did. But I have a feeling that the issue may be somehow tied to the fact that I'm using pnpm with workspaces. I've bashed my head on that particular wall too many times before. |
@farnabaz @veritymedia also have deleted and reinstalled deps - but not able to run |
@jordan-pieces I noticed that my nuxt version was 3.0.0 so upgraded manually to 3.7.0. Deleted package-lock for good measure, and now the error is gone. Including nuxt/content in nuxt modules no longer crashes the app |
Is it that before v2.7.3 is released, the fix only exists on the Edge channel? |
Hey all, just wanted to add some new details here.
I used the above workaround provided in this thread and it works for the regular node build preset. However, when you run the nuxt build with a different preset, e.g cloudflare-pages there is another error. Build command -
Wanted to add this in case it wasn't considered in the upcoming fix. Hope this helps 😄 |
@AdiRishi seems like Nitro doesn't respect aliases, which is unfortunate. With "pnpm": {
"overrides": {
"micromark": "3.2.0"
}
} |
Did you tried to use edge-channel? |
The fix is released in v2.8.0. |
* IN-362 Add package.json * Mitigate IN-3641 See nuxt/content#2254 (comment) * copy vuestorefront/sdk docs/new branch docs into here * fix broken link * remove unused images * most headers use just "thing" not "Vue Storefront thing"
Environment
Operating System: Windows_NT
Node Version: v16.20.0
Nuxt Version: 3.7.0
CLI Version: 3.7.0
Nitro Version: 2.6.1
Package Manager: [email protected]
Builder: -
User Config: modules
Runtime Modules: @nuxt/[email protected]
Build Modules: -
Reproduction
Describe the bug
It seems that content is currently completely incompatible with nuxt 3.7.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: