blitz-js / next-superjson-plugin

SuperJSON Plugin for Next.js Pages and Components
192 stars 13 forks source link

server gets terminated when I use swcplugin #103

Closed 5war00p closed 4 months ago

5war00p commented 4 months ago

Verify Next.js canary release

Describe the bug

After installing & configuring in next.config.js when I restart the server and try to access page, the server gets terminated without any error logs.

Expected behavior

Expecting serialization works properly

Reproduction link

No response

Version

^0.6.2

Config

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  experimental: {
    swcPlugins: [
      [
        "next-superjson-plugin",
        {
          excluded: [],
        },
      ],
    ],
  },
};

export default nextConfig;

Additional context

No response

barrynorman commented 4 months ago

Same for me.

5war00p commented 4 months ago

Btw I'm using the Next.js App directory

avarayr commented 4 months ago

https://github.com/blitz-js/next-superjson-plugin/issues/102#issuecomment-1974914232

orionmiz commented 4 months ago

There was a breaking change in swc_ast and guessing it's the cause of this issue.

Please try again with the updated(v0.6.3) plugin applied.

5war00p commented 4 months ago

https://github.com/blitz-js/next-superjson-plugin/issues/102#issuecomment-1975073713