Browserify - 未捕获错误:找不到模块'undefined'

时间:2017-08-14 07:50:24

标签: 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 (bundle.js:1)
at bundle.js:1
at Object.7../src/CalculationsPage (bundle.js:10166)
at s (bundle.js:1)

尽管如此,所有这些模块(即../Utility,。/ CalculationsProcessor,。/ scan / CounterPage)已经存在于bundle.js中,封装在单独的匿名函数中并附加到不同的键。

不知道该怎么做,请帮忙!

0 个答案:

没有答案