babel-plugin-superjson-next: d(...) is not a function
https://codesandbox.io/s/clever-oskar-ltpop?file=/pages/index.js
next: 10.0.5
react: 17.0.1
react-dom: 17.0.1
superjson: 1.4.1
babel-plugin-superjson-next: 0.1.9
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 23 (14 by maintainers)
Commits related to this issue
- Add repro for #29 — committed to blitz-js/babel-plugin-superjson-next by Skn0tt 3 years ago
- Merge pull request #30 from blitz-js/29-fix Investigation: d(...) is not a function (#29) — committed to blitz-js/babel-plugin-superjson-next by Skn0tt 3 years ago
With the masterful help of @nicolo-ribaudo and @JLHwung, we were able to find a workaround.
@JuanM04 @ChGGse could you try out
0.1.9-fix-19-danger
(npm install babel-plugin-superjson-next@danger
)? If that works for you, I’ll publish a patch update with that. It works locally for me, so I’m positive on this ^^Yes, it works!!!
Further digging led me to @babel/plugin-transform-react-jsx, which is updated in the aforementioned PR.
Published as v0.1.10.
What a ride! I’m really glad we solved this 🥳
Alright I rechecked the version and it was stuck on 10.0.5 but I removed then installed next@10.0.4 and it works again. Only issue now is that it isn’t showing data on Prisma but that’s a separate issue altogether.
Update: I fixed it by changing
params.toString()
toparams.username.toString()