Build Error
Unanswered
Birman posted this in #help-forum
BirmanOP
first time working with next on a big project, things go smoothly for the entirety of development i'm very familiar with react so no problem until it's time to build and i'm getting prerendering error and whatnot i've followed the link provided to check what it might be and i'm not sure on what is what anymore 'cos everything works in development shouldn't that carry over to production? none of what the possible error on the page of the provided link match with what i've got everything looks fine afaik. i use client in 3 components and using the app router not sure about what i'm even supposed to look out for the app/folder router looks just like it did when i initialized the project. i'm starting to get an headache fr
1 Reply
BirmanOP
yeeaaahhhh... don't use
@svgr/webpack
in your next.config.ts
guys, at least not this way:import type { NextConfig } from "next";
const nextConfig: NextConfig = {
reactStrictMode: true,
experimental: {
turbo: {
rules: {
"*.svg": {
loaders: ["@svgr/webpack"],
as: "*.js",
},
},
},
},
};
export default nextConfig;