blitz-js / blitz-js/next-superjson-plugin
Seemingly incompatible with NextJS15: failed to invoke plugin on 'Some("...")'
- Dominant language
- Rust
- Stars
- 216
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
### Verify Next.js canary release
- [x] I verified that the issue exists in the latest Next.js canary release
### Describe the bug
Attempting to use the plugin with a fresh NextJS 15 install results in a build error stating `failed to invoke plugin on 'Some("...")'`.
```bash
❯ pnpm build
> my-superjson-app@0.1.0 build /Users/michaelaubrey/Projects/my-superjson-app
> next build
▲ Next.js 15.3.0-canary.24
- Experiments (use with caution):
· swcPlugins
✓ Linting and checking validity of types
Creating an optimized production build ...
Failed to compile.
./pages/api/hello.ts
Error: x failed to invoke plugin on 'Some("/Users/michaelaubrey/Projects/my-superjson-app/pages/api/hello.ts")'
Import trace for requested module:
./pages/api/hello.ts
./node_modules/.pnpm/next@15.3.0-canary.24_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/pages/_error.js
Error: x failed to invoke plugin on 'Some("/Users/michaelaubrey/Projects/my-superjson-app/node_modules/.pnpm/next@15.3.0-canary.24_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/
| pages/_error.js")'
Import trace for requested module:
./node_modules/.pnpm/next@15.3.0-canary.24_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/pages/_error.js
./pages/_app.tsx
Error: x failed to invoke plugin on 'Some("/Users/michaelaubrey/Projects/my-superjson-app/pages/_app.tsx")'
./pages/_document.tsx
Error: x failed to invoke plugin on 'Some("/Users/michaelaubrey/Projects/my-superjson-app/pages/_document.tsx")'
./pages/index.tsx
Error: x failed to invoke plugin on 'Some("/Users/michaelaubrey/Projects/my-superjson-app/pages/index.tsx")'
Import trace for requested module:
./pages/index.tsx
> Build failed because of webpack errors
ELIFECYCLE Command failed with exit code 1.
~/Projects/my-superjson-app main !5 ?1
```
### Expected behavior
I expect to be able to build without errors.
### Reproduction link
https://github.com/MichaelCharles/my-superjson-app
### Version
0.6.3
### Config
```javascript
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
reactStrictMode: true,
experimental: {
swcPlugins: [["next-superjson-plugin", {}]],
},
};
export default nextConfig;
```
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.