Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Npm Browserify-未捕获错误:找不到模块';未定义';_Npm_Browserify_Commonjs - Fatal编程技术网

Npm Browserify-未捕获错误:找不到模块';未定义';

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

在包含所有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、/CalculationProcessor、/src/CalculationPage)已经存在于bundle.js中,封装在单独的匿名函数中,并附加到不同的键上


不知道该怎么办,请帮忙

你有没有想过?我对browserify也有同样的问题。