Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ClojureScript: TypeError: $jscomp.inherits is not a function

I have three imports from node_modules:

["web3" :as Web3js]
["web3modal" :default Web3Modal]
["@walletconnect/web3-provider" :default WalletConnectProvider]

If I comment out web3 and @walletconnect/web3-provider then everything is ok, but when I try to import these two libs I receive an error in the console: Failed to load woodenstaking_ui/components/connect_btn.cljs TypeError: $jscomp.inherits is not a function

Before it was working without problems, I don't understand what happened, why they stopped working. The problem appeared after importing another library from npm, but I already removed it, removed node_modules folder, made again npm install, but it did not help.

like image 816
Lizusha Avatar asked Oct 27 '25 03:10

Lizusha


1 Answers

  1. stop shadow-cljs
  2. remove the .shadow-cljs folder and your :output-to folder
  3. restart shadow-cljs
like image 175
lins05 Avatar answered Nov 02 '25 05:11

lins05



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!