repack
repack copied to clipboard
Cannot infer entry chunk when use multiple entry
{
//...
entry: {
base: [
...Repack.getInitializationEntries(reactNativePath, {
hmr: devServer && devServer.hmr,
}),
],
entry: './index'
}
throw exception:
HookWebpackError: Cannot infer entry chunk - this should have not happened.
at makeWebpackError (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/HookWebpackError.js:48:9)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3060:12
at eval (eval at create (/home/coder/project/eact-ative/example/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:42:1)
at fn (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:480:17)
at Hook.eval [as callAsync] (eval at create (/home/coder/project/eact-ative/example/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:40:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/coder/project/eact-ative/example/app/node_modules/tapable/lib/Hook.js:18:14)
at cont (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3057:34)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3105:10
at symbolIterator (/home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:3485:9)
at timesSync (/home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:2297:7)
at Object.eachLimit (/home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:3463:5)
at Compilation.createChunkAssets (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:4526:12)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3100:14
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3277:6
at /home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:2818:7
at done (/home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:3522:9)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3240:8
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3349:32
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/HookWebpackError.js:68:3
at Hook.eval [as callAsync] (eval at create (/home/coder/project/eact-ative/example/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at Cache.store (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Cache.js:107:20)
at ItemCacheFacade.store (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/CacheFacade.js:137:15)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3349:11
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Cache.js:91:34
at Array.<anonymous> (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/cache/MemoryCachePlugin.js:45:13)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Cache.js:91:19
at Hook.eval [as callAsync] (eval at create (/home/coder/project/eact-ative/example/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:19:1)
at Cache.get (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Cache.js:75:18)
at ItemCacheFacade.get (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/CacheFacade.js:111:15)
at Compilation._codeGenerationModule (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3319:9)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3226:11
at arrayIterator (/home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:3467:9)
at timesSync (/home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:2297:7)
at Object.eachLimit (/home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:3463:5)
at runIteration (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3206:13)
at Compilation._runCodeGenerationJobs (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3281:3)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3037:12
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3277:6
at /home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:2818:7
at done (/home/coder/project/eact-ative/example/app/node_modules/neo-async/async.js:3522:9)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3240:8
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3349:32
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/HookWebpackError.js:68:3
at Hook.eval [as callAsync] (eval at create (/home/coder/project/eact-ative/example/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at Cache.store (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Cache.js:107:20)
at ItemCacheFacade.store (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/CacheFacade.js:137:15)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Compilation.js:3349:11
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Cache.js:91:34
at Array.<anonymous> (/home/coder/project/eact-ative/example/app/node_modules/webpack/lib/cache/MemoryCachePlugin.js:45:13)
at /home/coder/project/eact-ative/example/app/node_modules/webpack/lib/Cache.js:91:19