Open FengXianGuo opened 5 years ago
This affects us a lot too, after upgrading from version 0.5.18
to 0.13.1
.
same problem, the plugin version is last 0.13.1
Just started getting this. Should I downgrade to an older version? Have you guys figured out a way around it?
I am randomly getting this error on gitlab CI builds. Does anyone have a workaround? Ihave a parameter to clean cache folder in case of any error but I am looking for a permanent solution.
[hardsource:e3cd29b8] Using 132 MB of disk space.
[hardsource:e3cd29b8] Tracking node dependencies with: package-lock.json.
[hardsource:e3cd29b8] Reading from cache e3cd29b8...
(node:30186) **UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'indexOf' of undefined**
at splitQuery (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/loader-runner/lib/LoaderRunner.js:19:14)
at getContext (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/loader-runner/lib/LoaderRunner.js:238:17)
at new NormalModule (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/webpack/lib/NormalModule.js:69:18)
at Object.thaw (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/hard-source-webpack-plugin/lib/util/serial.js:199:12)
at Object.thaw (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/hard-source-webpack-plugin/lib/util/serial.js:216:25)
at Compiler.pluginCompat.tap (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/hard-source-webpack-plugin/lib/TransformNormalModulePlugin.js:654:30)
at Compiler.applyPluginsWaterfall (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/tapable/lib/Tapable.js:92:24)
at Object.exports.call (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/hard-source-webpack-plugin/lib/util/plugin-compat.js:175:38)
at thaw (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/hard-source-webpack-plugin/lib/SystemArchetype.js:126:29)
at fetch (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/hard-source-webpack-plugin/lib/SystemArchetype.js:173:16)
at NormalModuleFactory.normalModuleFactoryHooks.createModule.tap (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/hard-source-webpack-plugin/lib/TransformNormalModuleFactoryPlugin.js:213:28)
at NormalModuleFactory.applyPluginsBailResult (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/tapable/lib/Tapable.js:129:27)
at applyPluginsAsyncWaterfall (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/webpack/lib/NormalModuleFactory.js:75:31)
at /home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/tapable/lib/Tapable.js:268:11
at NormalModuleFactory.params.normalModuleFactory.plugin (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/webpack/lib/CompatibilityPlugin.js:52:5)
at NormalModuleFactory.applyPluginsAsyncWaterfall (/home/gitlab-runner/builds/81c81de8/1/myApp/react-app/node_modules/tapable/lib/Tapable.js:272:13)
(node:30186) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:30186) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Yeah, have the same error. Version 0.13.1.
Got this after working fine for a while. Not I get it every time. Deleting the cache fixed it. For a while only..
Last commit more than year ago, is this project still alive? Is there any alternatives for this plugin?
I have the same error on v0.13.1.
got the same error on v0.13.1. @mzgoddard
will downgrade solve this?
updating @popperjs/core
fixed the issue for us. We used to have version 2.1.0. I updated it to 2.4.4 and Cannot read property 'indexOf' of undefined
error went away.
2022年还停留在0.13.1版本,且同样有这个问题。 webpack: ^3.0.0
Cannot read property 'indexOf' of undefined
Actual Behavior
the first time run hard-source always work fine.
the second time work all right, and get cache.
but third time i will get the error!
more detail:
debug info:
Operating System, Node, and NPM dependency versions