-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fatal error: Cannot read property 'rawRequest' of undefined #5
Comments
looks like |
It took me a second, but yes! I'm building two entry points concurrently, with something similar to the below Gruntfile setup. I don't think 'use strict';
module.exports = function (grunt) {
var webpackConfig = require('./webpack.config.js');
// Load all available grunt- npm tasks
require('matchdep').filterAll('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
// Webpack task to compile assets to dist/
webpack: {
options: {},
'client-prod': webpackConfig(['client']),
'server-prod': webpackConfig(['server'])
},
// Tasks for compiling the app concurrently (output may be a bit messy)
concurrent: {
'compile-prod': {
tasks: ['webpack:server-prod', 'webpack:client-prod'],
options: {logConcurrentOutput: true}
}
}
});
grunt.registerTask('build:prod', function () {
grunt.task.run([
'concurrent:compile-prod',
]);
});
}; |
The above cut-down config actually works as |
@grrowl it would be awesome if you could modify https://github.com/Turbo87/webpack-notifier/tree/master/example to reproduce this. |
I also hit this on a very large build. Copying from webpack/webpack#930 full stack trace:
Plugins list:
When I remove the notifier, I get a very large amount of warnings from uglify, which might be related?
(616 warnings follow) |
Same issue as @delvarworld, if I have Uglify warnings I get the error:
If uglification is skipped (and thus no warning output), everything works as expected. |
FYI, the workaround I did this is that for prod builds, I run the webpack task with |
Sorry I never followed up on this — been swamped and have moved away from including this for now (other devs found it noisy) |
I just pushed a fix for this issue and released it as v1.2.1. Please check if this issue is resolved for you now and let me know if there are still problems. |
Working great for me. Thanks! |
Added simply with
plugins: [ new WebpackNotifierPlugin({title: 'server build'}) ]
The text was updated successfully, but these errors were encountered: