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

I updated refinedev and refinedev/inferencer and suddenly project breaks 'prism-react-renderer/themes/vsDark' #5834

Closed
omriherman opened this issue Apr 9, 2024 · 0 comments · Fixed by #5836
Assignees
Labels
bug Something isn't working
Milestone

Comments

@omriherman
Copy link

omriherman commented Apr 9, 2024

Describe the bug

I just updated the following packages @refinedev/appwrite 6.4.4 -> 6.4.8, @refinedev/cli 2.16.14 ->2.16.29, @refinedev/kbar 1.3.4 -> 1.3.8, @refinedev/react-router-v6 4.5.4 -> 4.5.7, @refinedev/antd 5.36.14 -> 5.37.6, @refinedev/core 4.44.7 -> 4.49.0, @refinedev/inferencer 4.5.14 ->4.6.0, @refinedev/simple-rest 4.5.4 -> 5.0.4

And now my project breaks, this is the full error message:

"ERROR in ./node_modules/@refinedev/inferencer/dist/antd.mjs 418:0-52

Module not found: Error: Can't resolve 'prism-react-renderer/themes/vsDark' in 'C:\Users\omrih\Documents\TaxRay\taxray_demo_poc\taxray-demo-poc\node_modules@refinedev\inferencer\dist'
Did you mean 'index.js'?
BREAKING CHANGE: The request 'prism-react-renderer/themes/vsDark' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request."

Steps To Reproduce

  1. updated the following packages @refinedev/appwrite 6.4.4 -> 6.4.8, @refinedev/cli 2.16.14 ->2.16.29, @refinedev/kbar 1.3.4 -> 1.3.8, @refinedev/react-router-v6 4.5.4 -> 4.5.7, @refinedev/antd 5.36.14 -> 5.37.6, @refinedev/core 4.44.7 -> 4.49.0, @refinedev/inferencer 4.5.14 ->4.6.0, @refinedev/simple-rest 4.5.4 -> 5.0.4
  2. Site breaks

Expected behavior

Site shouldn't break

Packages

    "@ant-design/icons": "^5.0.1",
    "@ant-design/plots": "^1.2.5",
    "@babel/runtime": "^7.22.11",
    "@emotion/babel-plugin": "^11.11.0",
    "@emotion/is-prop-valid": "^1.2.1",
    "@emotion/serialize": "^1.1.2",
    "@emotion/styled": "^11.11.0",
    "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
    "@emotion/utils": "^1.2.1",
    "@fullcalendar/react": "^6.1.11",
    "@refinedev/antd": "^5.37.6",
    "@refinedev/appwrite": "^6.4.8",
    "@refinedev/cli": "^2.16.29",
    "@refinedev/core": "^4.49.0",
    "@refinedev/inferencer": "^4.6.0",
    "@refinedev/kbar": "^1.3.8",
    "@refinedev/react-router-v6": "^4.5.7",
    "@refinedev/simple-rest": "^5.0.4",
    "antd": "^5.0.5",
    "axios": "^1.4.0",
    "cors": "^2.8.5",
    "fullcalendar": "^6.1.11",
    "leaflet": "^1.9.4",
    "lodash": "^4.17.21",
    "prism-react-renderer": "^2.3.1",
    "react": "^18.0.0",
    "react-dom": "^18.0.0",
    "react-leaflet": "^4.2.1",
    "react-leaflet-cluster": "^2.1.0",
    "react-router-dom": "^6.8.1",
    "react-scripts": "^5.0.0"
  },
  "devDependencies": {
    "@definitelytyped/dtslint": "^0.0.168",
    "@emotion/react": "^11.11.0",
    "@testing-library/jest-dom": "^5.16.4",
    "@testing-library/react": "^13.1.1",
    "@testing-library/user-event": "^14.1.1",
    "@types/jest": "^29.2.4",
    "@types/leaflet": "^1.9.9",
    "@types/lodash": "^4.14.171",
    "@types/node": "^12.20.11",
    "@types/react": "^18.0.0",
    "@types/react-dom": "^18.0.0",
    "prettier": "^3.2.5",
    "typescript": "^4.7.4",
    "web-vitals": "^1.1.1"

Additional Context

No response

@omriherman omriherman added the bug Something isn't working label Apr 9, 2024
@aliemir aliemir self-assigned this Apr 17, 2024
@aliemir aliemir added this to the May Release milestone May 3, 2024
@aliemir aliemir closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants