Comments (5)
I'm having the exact same issue, by chance were you able to find a workaround?
from webpack-stream.
@jpgcodecr yes I could, I started using webpack for scripts build xd. I really don't understand what happened
from webpack-stream.
Hi,
have the same thing but with error handling.
const stream2 = gulp.src([
'./src/js/index.js',
])
.pipe(webpack(
config,
compiler,
function (err, stats) {
console.log('webpack stats');
console.log('test error', err);
/* Use stats to do more things if needed */
})
.on('error', function (err) {
if (buildArgs.env === 'production') {
console.error("stop build!!!");
} else {
console.error("DO NOT stop build!!!");
this.emit('end'); // Don't stop the rest of the task
}
})
it seems that events aka this.emit('end')
do not work on node >= 14
from webpack-stream.
FWIW, I also hit this error and it was infuriating to debug. It turned out to be due to this code:
Lines 258 to 266 in 35b771e
In particular, webpack-stream
doesn't end the stream unless the webpack config has an entry
point defined. Mine didn't (my fault), so the stream was never closed and this eventually caused the async
to never complete.
Fix: define an entry
in the webpack config.
from webpack-stream.
I just ran into this as well and I cannot figure out what is going on. It isn't the lack of entry
, as I have that defined.
I am trying to upgrade from node 16 (webpack-stream v5.2.1) to node 18 (webpack-stream v7). It works on v5, but I get this error on v7 and nothing is generated.
I tried the bare minimum configuration - a single typescript file in entry
and ts-loader. Still doesn't signal completion.
Running webpack from the webpack cli works, so it isn't something with my config or webpack itself.
I have no idea how to debug this to give you any more information, but if you have ideas let me know. Probably will end up not using it anymore if we can't get it figured out here, given webpack cli itself works. Would really love to not have to rewrite my gulpfile though.
from webpack-stream.
Related Issues (20)
- DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead HOT 5
- DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead HOT 1
- Support webpack version 5 HOT 2
- Webpack 5 HOT 3
- Using webpack 5 as described in README produces empty output files HOT 1
- Webpack 5 warns about a deprecation in watch mode HOT 4
- Error: Rule can only have one resource source when using webpack-stream HOT 4
- webpack.config entry import syntax support HOT 1
- Slowdown after upgrade to 6.x.x. HOT 4
- Using webpack-5 results in no output files HOT 4
- Question about multiple entry points
- DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_HASH HOT 2
- MODULE_NOT_FOUND error while using version 7.0.0 HOT 2
- [Error] Invalid left-hand side expression in prefix operation HOT 4
- webpack-stream 7.0.0 throws an error: Cannot find module webpack/lib/ProgressPlugin HOT 6
- Remove the need to manually filter out source map files HOT 4
- Callback in being ignored in the multicompication case
- Webpack 5 Stream won't compile HOT 1
- Webpack stream w/ Gulp — errors when using aliases in webpack config HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-stream.