-
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
Support Webpack 4 #180
Comments
Specifying webpack manually solves the problem. webpackStream(webpackConfig, require("webpack")) |
I tried the above as a quick hack and it worked for now. |
When using webpack v4.1.1 and webpack-stream v4.0.2 and specifying the webpack module in my gulpfile as
|
@xanderiel Probably that error is due to "script-ext-html-webpack-plugin". |
Thanks @negibouze !! |
Hello, I get this error using webpack 4.1.1 or 4.2.0 and webpack-stream 4.0.3 :
|
@beyondsanity I'm not getting that same error with |
This is my package.json {
"name": "test",
"description": "Test",
"license": "Test",
"version": "1.0.0",
"private": true,
"devDependencies": {
"@types/chai": "4.1.2",
"@types/chrome": "0.0.61",
"@types/core-js": "0.9.46",
"@types/fs-extra": "5.0.1",
"@types/jasmine": "2.8.6",
"@types/jquery": "3.3.1",
"@types/pako": "1.0.0",
"@types/simple-lru": "0.0.0",
"chai": "4.1.2",
"circular-dependency-plugin": "5.0.0",
"copy-webpack-plugin": "4.5.1",
"core-js": "2.5.3",
"crx": "3.2.1",
"fs": "0.0.1-security",
"fs-extra": "5.0.0",
"glob": "7.1.2",
"gulp": "4.0.0",
"gulp-chutzpah": "1.5.0",
"gulp-clean": "0.4.0",
"gulp-cli": "2.0.1",
"gulp-crx-pack": "1.0.2",
"gulp-jscpd": "0.0.8",
"gulp-json-editor": "2.2.2",
"gulp-load-plugins": "1.5.0",
"gulp-logger": "0.0.2",
"gulp-multi-dest": "1.3.7",
"gulp-rename": "1.2.2",
"gulp-replace": "0.6.1",
"gulp-teamcity-reporter": "0.0.2",
"gulp-tslint": "8.1.3",
"gulp-zip": "4.1.0",
"hard-source-webpack-plugin": "0.6.4",
"jasmine": "3.1.0",
"json-loader": "0.5.7",
"merge-stream": "1.0.1",
"node-rsa": "0.4.2",
"pako": "1.0.6",
"path": "0.12.7",
"simple-lru": "0.0.3",
"string-replace-webpack-plugin": "0.1.3",
"ts-loader": "4.1.0",
"tslint": "5.9.1",
"tslint-teamcity-reporter": "2.0.0",
"typescript": "2.7.2",
"uglify-js": "3.3.16",
"webpack": "4.2.0",
"webpack-merge": "4.1.2",
"webpack-stream": "4.0.2",
"wrapper-webpack-plugin": "1.0.0"
}
} Gulpfile.js , this is the task using webpack stream gulp.task('default', function() {
return gulp.src('*')
.pipe(webpack())
.pipe(gulp.dest('dist/'));
}); |
after changing to "webpack": "^4.5.0" it works for me. Thanks in advance! |
To add to what @NN--- and @mrG0bliN wrote:
|
@mrG0bliN, that's why this is filed under the title "Support Webpack 4". Since, this package uses "webpack": "^3.4.1" |
This change may make things simpler, or #188. But I was able to get past this issue after reading here, about passing webpack in as an optional 2nd argument: |
MultiCompiler support is broken (
|
Fixed with #187 |
I have the same error:
package.json:
webpack.config.js:
gulpfile.js:
|
https://medium.com/webpack/webpack-4-migration-guide-for-plugins-loaders-20a79b927202
Although this may be as simple as updating the dependency in package.json
The text was updated successfully, but these errors were encountered: