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

[bug] Next.js + TypeScript + SWC Minification #383

Closed
1 task done
giliamverheide opened this issue May 14, 2022 · 2 comments
Closed
1 task done

[bug] Next.js + TypeScript + SWC Minification #383

giliamverheide opened this issue May 14, 2022 · 2 comments

Comments

@giliamverheide
Copy link

giliamverheide commented May 14, 2022

Is there an existing issue for this?

  • I have searched the existing issues

RainbowKit Version

0.1.0

wagmi Version

0.3.5

Current Behavior

Using Next.js, TypeScript, and minification with the SWC compiler, causes rainbowkit to break. Happens with both a static site export and building and running a next server. I'm unsure if this is something that can be fixed inside the rainbowkit package or if this is an issue within swc.

In short: typescript + the swcMinify option inside next.config.js causes this issue.

Expected Behavior

Work with the swc compiler.

Steps To Reproduce

Please refer to the linked repository for a minimal reproducible example and steps to reproduce.

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

https://github.com/giliamverheide/next-ts-swc-rainbowkit-issue

@giliamverheide
Copy link
Author

Update: This should get fixed in vercel/next.js#36745

@nickbytes
Copy link
Collaborator

Thanks for the update @giliamverheide – going to close this issue! Feel free to re-open if you think there's something else going on here w/ RainbowKit!

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

No branches or pull requests

2 participants