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

Package subpath './lib/parser/index.js' is not defined by "exports" #861

Closed
9x3l6 opened this issue Mar 21, 2023 · 2 comments
Closed

Package subpath './lib/parser/index.js' is not defined by "exports" #861

9x3l6 opened this issue Mar 21, 2023 · 2 comments

Comments

@9x3l6
Copy link

9x3l6 commented Mar 21, 2023

Error - Package subpath './lib/parser/index.js' is not defined by "exports" in /var/task/.netlify/functions-internal/server/node_modules/parse5/package.json imported from /var/task/.netlify/functions-internal/server/node_modules/hast-util-raw/lib/index.js

@fb55
Copy link
Collaborator

fb55 commented Mar 24, 2023

It seems like you have a version mismatch. I'd be surprised if there is a release of hast-util-raw that specifies parse5@7 as a dependency AND pulls in this path. Try removing your package-lock.json and node_modules, then installing things again.

@wooorm
Copy link
Collaborator

wooorm commented Mar 24, 2023

Yep, likely bundler problem. Or someone overwrote this.
Shouldn't be a problem normally

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

No branches or pull requests

3 participants