Webpack Compilation Error

I am using t3-config with nextjs 13 and cypress it is working fine with nextjs alone but when i use cypress i am getting
Error: Webpack Compilation Error
Module not found: Error: Can't resolve 'process/browser' in '/home/project'
Did you mean 'browser.js'?
BREAKING CHANGE: The request 'process/browser' 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.
Error: Webpack Compilation Error
Module not found: Error: Can't resolve 'process/browser' in '/home/project'
Did you mean 'browser.js'?
BREAKING CHANGE: The request 'process/browser' 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.
the problem is I am importing a file in cypress test that is somewhere importing the env.mjs file and this is somehow causing this error can someone help me with this ?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server