Npm Browserify-未捕获错误:找不到模块';未定义';
在包含所有js模块的最后一个bundle.js文件中,出现以下错误Npm Browserify-未捕获错误:找不到模块';未定义';,npm,browserify,commonjs,Npm,Browserify,Commonjs,在包含所有js模块的最后一个bundle.js文件中,出现以下错误 Uncaught Error: Cannot find module 'undefined' at s (bundle.js:1) at bundle.js:1 at Object.33.../Utility (bundle.js:12704) at s (bundle.js:1) at bundle.js:1 at Object.11../CalculationsProcessor (bundle.js:10397) at s
Uncaught Error: Cannot find module 'undefined'
at s (bundle.js:1)
at bundle.js:1
at Object.33.../Utility (bundle.js:12704)
at s (bundle.js:1)
at bundle.js:1
at Object.11../CalculationsProcessor (bundle.js:10397)
at s (bundle.js:1)
at bundle.js:1
at Object.7../src/CalculationsPage (bundle.js:10166)
at s (bundle.js:1)
尽管如此,所有这些模块(即,../Utility、/CalculationProcessor、/src/CalculationPage)已经存在于bundle.js中,封装在单独的匿名函数中,并附加到不同的键上
不知道该怎么办,请帮忙 你有没有想过?我对browserify也有同样的问题。