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

Module not found: Can't resolve '@babel/runtime-corejs2/core-js/object/keys' #512

Open
futurescape-tech opened this issue Aug 19, 2024 · 1 comment

Comments

@futurescape-tech
Copy link

Describe the bug
Getting Module not found: Can't resolve '@babel/runtime-corejs2/core-js/object/keys' Error, I am not using babel

Stack Trace
./node_modules/rjsf-conditionals/dist/es/actions/uiAppend.js:1:1 Module not found: Can't resolve '@babel/runtime-corejs2/core-js/object/keys' https://nextjs.org/docs/messages/module-not-found Import trace for requested module: ./node_modules/rjsf-conditionals/dist/es/actions/index.js ./node_modules/rjsf-conditionals/dist/es/applyRules.js ./node_modules/rjsf-conditionals/dist/es/index.js

To Reproduce:

Expected behavior
Form should be visible

Library details:

  • Next 14.1.4

  • React 18.2.0

  • rjsf-conditionals: 1.5.0,

  • "@rjsf/core": "^5.18.1",
    "@rjsf/material-ui": "^5.18.1",
    "@rjsf/mui": "^5.18.1",
    "@rjsf/utils": "^5.18.1",
    "@rjsf/validator-ajv8": "^5.18.1",

    "json-rules-engine": "^6.5.0",
    "json-rules-engine-simplified": "^0.2.0",

  • Which file/dependency is used, which module system? next js app router

@ivarprudnikov
Copy link
Owner

core-js is a required npm peer dependency at the moment, see package.json

"peerDependencies": {
    "@rjsf/core": ">=2.0.0",
    "core-js": "^2.5.7",
    "prop-types": "^15.7.2",
    "react": "^16.9.0 || >=17"
  },

I know it is old and people would want to use a later version but anyone could do a PR

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

2 participants