blitz-js / next-superjson-plugin

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

Plugin broke with Next 13.4.3 #81

Closed EvHaus closed 1 year ago

EvHaus commented 1 year ago

Verify Next.js canary release

Describe the bug

After upgrading from Next 13.4.2 to 13.4.3 the plugin is now failing for me with:

- error ./node_modules/.pnpm/next@13.4.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/client/dev/amp-dev.js
Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/home/myproject/node_modules/.pnpm/next@13.4.3_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/client/dev/amp-dev.js")'

Caused by:
    0: failed to invoke `/home/myproject/node_modules/.pnpm/next-superjson-plugin@0.5.7_next@13.4.3_superjson@1.12.3/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /home/myproject/node_modules/.pnpm/next-superjson-plugin@0.5.7_next@13.4.3_superjson@1.12.3/node_modules/next-superjson-plugin/dist/next_superjson.wasm
    1: RuntimeError: unreachable
           at <unnamed> (<module>[1589]:0x13100d)
           at <unnamed> (<module>[1580]:0x130d22)
           at <unnamed> (<module>[1579]:0x130ce9)
           at <unnamed> (<module>[1567]:0x12fd99)
           at <unnamed> (<module>[1566]:0x12fcc3)
           at <unnamed> (<module>[1574]:0x130357)
           at <unnamed> (<module>[1711]:0x13e280)
           at <unnamed> (<module>[1745]:0x144465)
           at <unnamed> (<module>[225]:0x2fac7)
           at <unnamed> (<module>[272]:0x46122)
           at <unnamed> (<module>[308]:0x52781)
           at <unnamed> (<module>[249]:0x381ae)
           at <unnamed> (<module>[96]:0xedd1)
           at <unnamed> (<module>[95]:0xeb96)
           at <unnamed> (<module>[765]:0xc0858)
           at <unnamed> (<module>[1846]:0x14a663)

Expected behavior

App should still run with next dev

Reproduction link

No response

Version

0.5.7

Config

// @ts-check

/**
 * @type {import('next').NextConfig}
 **/
module.exports = {
    experimental: {
        esmExternals: true,
        swcPlugins: [
            ['next-superjson-plugin', {}],
        ],
    },
    pageExtensions: ['page.tsx', 'page.ts'],
    reactStrictMode: true,
};

Additional context

No response

jonsoku-dev commented 1 year ago

same issue..!