'How to fix my NexJs deployment error on Vercel "No serverless pages were built"
I'm getting this error in my log when I try to deploy on vercel
Found next.config.js:
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: [{ loader: '@svgr/webpack', options: { icon: true } }],
})
return config
}
}
module.exports = nextConfig
Error: No serverless pages were built. Learn More: https://err.sh/vercel/vercel/now-next-no-serverless-pages-built
I've tried deleting the node modules but that does not seem to work Please help!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|