rainbowkit
rainbowkit copied to clipboard
[bug] Error: request for './chunk-RZWDCITT.js' is not in cache
Is there an existing issue for this?
- [x] I have searched the existing issues
RainbowKit Version
2.2.7
wagmi Version
2.15.6
Current Behavior
When upgrading from 2.2.6 to 2.2.7 we get this error:
project: ⨯ node:internal/modules/esm/module_job:146
project: this.module.instantiate();
project: ^
project: Error: request for './chunk-RZWDCITT.js' is not in cache
project: at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)
project: at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)
project: at async ModuleLoader.import (node:internal/modules/esm/loader:473:24) {
project: code: 'ERR_VM_MODULE_LINK_FAILURE',
project: page: '/ourinternalroute'
project: }
It did not happen before. Downgrading again make it work again.
@nfts2me Which framework and framework version are you using?
@nfts2me I was unable to replicate this; can you try cleaning your dependencies and build folder to see if this is mitigated?
@nfts2me I was unable to replicate this; can you try cleaning your dependencies and build folder to see if this is mitigated?
I've just re-tried with the .8 just released version and same error:
Could you please re-open the issue @DanielSinclair ?
EDIT: We have two projects using @rainbow-me/rainbowkit, with the same version, and it crashes in one of them but not on the other. However, both work fine on 2.2.6.
I think I may have some clues. If I remove "abstractWallet" from the connectors, I instead get this error @DanielSinclair
But, still, it does not work. I have fully uninstalled @abstract-foundation/agw-react and @abstract-foundation/agw-client , and I still get this new error.
We have same error here :/
Next.js v14.2.5 and @rainbow-me/rainbowkit v2.2.4
@DanielSinclair Can you please re-open the issue ? Not working even with last version of rainbow-me (2.2.8). Gonna link a reproduction repo ASAP.
@jeanbenoit-richez Was unable to reproduce with the following. Do any of your dependencies differ?
"dependencies": {
"@rainbow-me/rainbowkit": "^2.2.8",
"@tanstack/react-query": "^5.55.3",
"next": "14.2.5",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"viem": "2.29.2",
"wagmi": "^2.15.6"
},
"devDependencies": {
"@types/node": "^20.14.8",
"@types/react": "^19.1.8",
"eslint-config-next": "^15.1.7",
"typescript": "5.5.4"
},
@jeanbenoit-richez Was unable to reproduce with the following. Do any of your dependencies differ?
"dependencies": { "@rainbow-me/rainbowkit": "^2.2.8", "@tanstack/react-query": "^5.55.3", "next": "14.2.5", "react": "^19.1.0", "react-dom": "^19.1.0", "viem": "2.29.2", "wagmi": "^2.15.6" }, "devDependencies": { "@types/node": "^20.14.8", "@types/react": "^19.1.8", "eslint-config-next": "^15.1.7", "typescript": "5.5.4" },
Just to try, I set my dependencies except for typescript (otherwise I could not compile) to those versions and still got the issue.
Also, could you please @DanielSinclair re-open the issue? Some people may be having this issue and not seeing as being closed.
@jeanbenoit-richez Was unable to reproduce with the following. Do any of your dependencies differ?
"dependencies": { "@rainbow-me/rainbowkit": "^2.2.8", "@tanstack/react-query": "^5.55.3", "next": "14.2.5", "react": "^19.1.0", "react-dom": "^19.1.0", "viem": "2.29.2", "wagmi": "^2.15.6" }, "devDependencies": { "@types/node": "^20.14.8", "@types/react": "^19.1.8", "eslint-config-next": "^15.1.7", "typescript": "5.5.4" },
My deps are:
"dependencies": {
"@rainbow-me/rainbowkit": "2.2.6",
"@tanstack/react-query": "^5.72.0",
"next": "14.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "2.29",
"wagmi": "^2.15.6"
},
"devDependencies": {
"@types/node": "^22.12.0",
"@types/react": "^18",
"eslint-config-next": "14.2.5",
"typescript": "5.7.3"
},
Difference i see: node version and react version.
EDIT: 2.2.6 is working, 2.2.8 not working
Thank you for reopenning @DanielSinclair
@jeanbenoit-richez have you been able to do the reproducible repo?
Experiencing the same when trying to bump rainbow kit in Hyperlane UI template
https://github.com/hyperlane-xyz/hyperlane-warp-ui-template/blob/aa9c5ce6e662ac9ca41701a8e1e6edae4f107cdb/package.json#L27