本文介绍了ClojureScript:TypeError:$ jscomp.inherits不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从node_modules中导入了三个:

I have three imports from node_modules:

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

如果我注释掉 web3 @ walletconnect/web3-provider ,那么一切正常,但是当我尝试导入这两个库时,我在控制台中收到错误消息:无法加载woodenstaking_ui/components/connect_btn.cljs TypeError:$ jscomp.inherits不是函数

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

在没有任何问题的情况下,我不明白发生了什么,为什么他们停止了工作.从npm导入另一个库后出现了问题,但是我已经删除了它,删除了node_modules文件夹,再次进行了 npm install ,但是没有帮助.

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.

推荐答案

  1. 停止shadow-cljs
  2. 删除.shadow-cljs文件夹和您的:output-to文件夹
  3. 重新启动shadow-cljs

这篇关于ClojureScript:TypeError:$ jscomp.inherits不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 00:10