Build error with JSON file as asset on wagmiV2 #3927
Unanswered
dellwatson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
So recently just upgraded my wagmi into v2, and I found this bug on vite react.
I tried all versions v2, and same issue. on local dev it will be fine, but encounter error on building the app
with this build config on
vite.config.ts
the build will get error
this make my vite-react app unable to use JSOn as file,
so either i remove the json options from that array or I use wagmi v1.
Link to Minimal Reproducible Example
https://github.com/dellwatson/wagmi-v2-bug
Steps To Reproduce
fix: downgrade to wagmi v1 or remove js from asset include
Wagmi Version
v2.*
Viem Version
v2.*
TypeScript Version
5.4.5
Check existing issues
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions