/** @type {import('next').NextConfig} */
const nextConfig = {
webpack5: true,
webpack: (
config,
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
) => {
config.resolve.fallback = {
fs: false,
path: false,
crypto: false,
};
return config;
},
};
export default nextConfig;
After downgrading to nextjs 14.0.4, it works well.
error log


nextjs config
After downgrading to nextjs 14.0.4, it works well.