Build Errors with ioredis
Unanswered
Dwarf Crocodile posted this in #help-forum
Dwarf CrocodileOP
I'm currently using Next.js version 13.1.6 and encountering errors during the build due to ioredis. I suspect the issue stems from invoking 'dns', 'net', and 'tls' on the client-side.
Although I've added the below code to my webpack configuration inside next.config.js file, it hasn't resolved the problem !
The error didn't occur until I upgraded Storybook in my project to version 7
Although I've added the below code to my webpack configuration inside next.config.js file, it hasn't resolved the problem !
module.exports = {
webpack: (config, { isServer }) => {
if (!isServer) {
// Disable the fallback for dns, net, and tls on the client-side
config.resolve.fallback.fs = false
config.resolve.fallback.dns = false
config.resolve.fallback.net = false
config.resolve.fallback.tls = false
}
return config;
},
};The error didn't occur until I upgraded Storybook in my project to version 7
4 Replies
my quick google search found: https://stackoverflow.com/a/63074348, have you tried it (and maybe doing similar with the other ones)
@riský my quick google search found: <https://stackoverflow.com/a/63074348>, have you tried it (and maybe doing similar with the other ones)
Dwarf CrocodileOP
I tried all the solutions, but the error still occurs
ðŸ˜
Dwarf CrocodileOP
Might there be a conflict of some sort ?