Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

superjson.registerCustom is not defined when "type": "module" #186

Closed
converter-user-old opened this issue Apr 28, 2022 · 3 comments · Fixed by #187
Closed

superjson.registerCustom is not defined when "type": "module" #186

converter-user-old opened this issue Apr 28, 2022 · 3 comments · Fixed by #187

Comments

@converter-user-old
Copy link

When i use "type": "module" in my package.json i get a error that the function is not defined.
Only if i use superjson.default.registerCustom then it works but TS will then complain.

See https://codesandbox.io/s/reverent-dream-4khu8b

@Skn0tt
Copy link
Member

Skn0tt commented May 2, 2022

@all-contributors please add @ruessej for bug

@allcontributors
Copy link
Contributor

@Skn0tt

I've put up a pull request to add @ruessej! 🎉

@Skn0tt
Copy link
Member

Skn0tt commented May 2, 2022

released in 1.9.1! thank you @ruessej :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants