Closed EvHaus closed 1 year ago
I got the same error yesterday. We are using nx workspace to run the nextjs application here are my configs
const withNx = require('@nx/next/plugins/with-nx');
const path = require('path');
/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
pageExtensions: ['mdx', 'md', 'jsx', 'js', 'tsx', 'ts'],
experimental: {
swcPlugins: [["next-superjson-plugin", {}]],
},
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
nx: {
// Set this to true if you would like to to use SVGR
// See: https://github.com/gregberge/svgr
svgr: false,
},
};
module.exports = withNx(nextConfig);
I am experiencing the same error, by running yaarn build
.
Removing swcPlugins from nextConfig or reverting next version to 13.4.3 fixed the problem for me.
Hey, I got this same issue. Using: Nextjs 13.4.4
Same here
https://github.com/vercel/next.js/pull/50651
This PR will close the issue.
Please check out v13.4.5-canary.7
Verify Next.js canary release
Describe the bug
After upgrading from Next 13.4.3 to 13.4.4 using
next-superjson-plugin
now throws the following error during build:Looks like that error is coming from
swc
but I'm not sure what changed between 13.4.3 and 13.4.4 that could use that.Expected behavior
App should still run with
next dev
Reproduction link
No response
Version
0.5.8
Config