-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concurrent Compilation Error #201
Comments
i found this is may be the compiler cache problem. when options change, webstream will empty the cache object. but when run parallel gulp task, all the task will share the same compiler instance. so,i think the compiler may not cache by closure..should cache on the function. |
I'm having the exact same issue when going from 5.0.0 to 5.1.0 - hoping for a fix or instructions on how to have multiple compilations. |
I came across the same error and fixed it by downgrading to |
I'm also seeing this issue when using |
Solved by cloning my options for each task. |
Any update on a fix? |
Patches are welcome. |
+1 |
@danieldiekmeier Thanks, it helped me |
Caching the webpack compiler, introduced in PR #109, causes an error when compiling multiple files concurrently.
This issue is not related to gulp however I ran into it when using gulp to compile my project. I am working with a mono-repo where I have a
services
directory which contains several microservices. each microservice has its ownsrc
directory which contains anindex.js
.I use the following code to compile each micro service individually
webpack-stream 5.0.0 works as expected and produces a compiled version of each microservice which is stored in a
dist
directory alongside its respectivesrc
directory.webpack-stream 5.1.0 introduced caching and reuses the same webpack instance for each compilation task which results in the following error:
The text was updated successfully, but these errors were encountered: