Sellix SDK for Nextjs
Answered
Giant panda posted this in #help-forum
Giant pandaOP
"fetch is not a function"
Answered by Ray
try this
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ["@sellix/node-sdk"],
},
}
module.exports = nextConfig6 Replies
Giant pandaOP
im using this in the newest nextjs version
Im keep getting this error
TypeError: fetch is not a functionping me on anything newthanks :3
@Giant panda Click to see attachment
try this
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ["@sellix/node-sdk"],
},
}
module.exports = nextConfigAnswer