ERROR in ../node_modules/@redwoodjs/testing/dist/web/MockProviders.js 27:4-47

Module not found: Error: Can’t resolve ‘~__REDWOOD__USER_ROUTES_FOR_MOCK’ in ‘/home/username/Desktop/foldername/appname/node_modules/@redwoodjs/testing/dist/web’

Anyone else encountering this error?

Hey @vision-metanoia, can you give us a little more information? Namely, what version of Redwood are you on? And in what context does this error come up? (Probably in Storybook or in a Jest test I’m guessing?)

I’m not sure when it exactly started; I remember coming back to work on the project and starting to get Webpack 5 breaking changes errors (I found a solution on this forum) and this error.

I thought upgrading might fix it, but I think that has added to the problem. I fixed all the upgrading-related issues and landed on this issue again, and this error was occurring before the upgrade as well.

At this point, it’s on v5 rw.