Project Set Up Problems :(
Unanswered
Löwchen posted this in #help-forum
LöwchenOP
I'm not sure what's wrong with my next.config file, anyone got any ideas? here's my config file and a photo of the error
module.exports = {
reactStrictMode: true,
basePath: "/login",
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false
config.resolve.fallback.tls = false
config.resolve.fallback.net = false
config.resolve.fallback.child_process = false
}
return config
},
experimental: {
turbo: {
resolveAlias: {
underscore: 'lodash',
mocha: { browser: 'mocha/browser-entry.js' },
},
},
},
fallback: {
fs: false,
tls: false,
net: false,
child_process: false,
},
images: {
domains: ["images.blabla.com", "avatar.blabla.com"],
path:/login/_next/image,
},
}4 Replies
@Löwchen I'm not sure what's wrong with my next.config file, anyone got any ideas? here's my config file and a photo of the error
`module.exports = {
reactStrictMode: true,
basePath: "/login",
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false
config.resolve.fallback.tls = false
config.resolve.fallback.net = false
config.resolve.fallback.child_process = false
}
return config
},
experimental: {
turbo: {
resolveAlias: {
underscore: 'lodash',
mocha: { browser: 'mocha/browser-entry.js' },
},
},
},
fallback: {
fs: false,
tls: false,
net: false,
child_process: false,
},
images: {
domains: ["images.blabla.com", "avatar.blabla.com"],
path: `/login/_next/image`,
},
}
`
this part is no longer accepted by nextjs
experimental: {
turbo: {
resolveAlias: {
underscore: 'lodash',
mocha: { browser: 'mocha/browser-entry.js' },
},
},
},
fallback: {
fs: false,
tls: false,
net: false,
child_process: false,
},LöwchenOP
what do I replace it with?
experimental.turbo is accepted only by turbopack, you have to next dev --turbo or remove iti don't know what
fallback is for, why did you add it?