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

Most upvoted comments

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 🥳

Getting the same issue, Tried downgrading to 10.0.4 but no luck. Still getting the same error.

Maybe you downgraded wrong. I have to yarn remove next && yarn add next@10.0.4 (without the ^) to downgrade correctly. I downgraded wrong immeasurable times.

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() to params.username.toString()