Skip to content

"EthereumProvider.init is not a function" #2687

Discussion options

You must be logged in to vote

I have solved this issue!

Conclusion: Behavior changes depending on the version of esbuild.

In my project, I use esbuild for JavaScript bundling in Rails. Upon checking, I found that the version of esbuild I was using was 0.14.36.

When I changed it to the current latest version, which is 0.18.10, and tried again, the TypeError: EthereumProvider.init is not a function error no longer occurred.

Here are the results I obtained after checking with each version of esbuild:

0.14.36 -> Not working
0.15.18 -> Not working

0.16.0 -> Working
0.17.19 -> Working
0.18.10 -> Working

Such errors may also occur with other JS build tools. If you are facing the same problem, please try updating the versio…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@glitch-txs
Comment options

@w-toguchi83
Comment options

@glitch-txs
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by w-toguchi83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants