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!
Navigate to settings of your project in Vercel dashboard
https://vercel.com/[username]/[project]/settings
App should build successfully now
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With