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

For those running into the error: Your application tried to access @babel/core, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound. #504

Open
matthijsgroen opened this issue Oct 3, 2024 · 0 comments

Comments

@matthijsgroen
Copy link

If you ar using Yarn 2+ and pnp, you can do the following:

yarn add --dev @babel/core @babel/preset-react

and (if needed) add to your .yarnrc.yaml:

packageExtensions:
  "vite-plugin-markdown@*":
    dependencies:
      "@babel/core": "7.23.9"
      "@babel/preset-react": "7.23.3"
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

1 participant