我从 npm 包管理器安装了 gentelella 模板,我试图包含这样的 PNotify 脚本(css 包含在顶部):
<!-- jQuery -->
<script src="node_modules/gentelella/vendors/jquery/dist/jquery.min.js"></script>
<!-- PNotify -->
<script src="node_modules/gentelella/vendors/pnotify/dist/pnotify.js"></script>
但是,当我执行应用程序时,我收到此错误:
pnotify.js:6 Uncaught TypeError: b is not a function
at q (pnotify.js:6)
at pnotify.js:31
at pnotify.js:6
at pnotify.js:6
但是当我使用浏览器执行index.html时它工作正常,为什么?
谢谢!
最佳答案
关于javascript - 未捕获的类型错误 : b is not a function in nodejs(electron),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43824599/