rainbowkit icon indicating copy to clipboard operation
rainbowkit copied to clipboard

[bug] Error: request for './chunk-RZWDCITT.js' is not in cache

Open nfts2me opened this issue 5 months ago • 4 comments

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 avatar Jun 13 '25 06:06 nfts2me

@nfts2me Which framework and framework version are you using?

DanielSinclair avatar Jun 13 '25 14:06 DanielSinclair

@nfts2me Which framework and framework version are you using?

NextJS 14.x with React 18.x

nfts2me avatar Jun 13 '25 20:06 nfts2me

@nfts2me I was unable to replicate this; can you try cleaning your dependencies and build folder to see if this is mitigated?

DanielSinclair avatar Jun 17 '25 04:06 DanielSinclair

@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:

Image

Image

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.

nfts2me avatar Jun 18 '25 06:06 nfts2me

I think I may have some clues. If I remove "abstractWallet" from the connectors, I instead get this error @DanielSinclair

Image

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.

nfts2me avatar Jun 18 '25 07:06 nfts2me

We have same error here :/

Next.js v14.2.5 and @rainbow-me/rainbowkit v2.2.4

jeanbenoit-richez avatar Jun 18 '25 11:06 jeanbenoit-richez

@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 avatar Jun 18 '25 11:06 jeanbenoit-richez

@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"
},

DanielSinclair avatar Jun 18 '25 16:06 DanielSinclair

@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.

nfts2me avatar Jun 19 '25 05:06 nfts2me

@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

jeanbenoit-richez avatar Jun 19 '25 07:06 jeanbenoit-richez

Thank you for reopenning @DanielSinclair

@jeanbenoit-richez have you been able to do the reproducible repo?

nfts2me avatar Jul 08 '25 05:07 nfts2me

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

CJ42 avatar Aug 27 '25 11:08 CJ42