You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\...........\node_modules\webpack\bin\webpack.js:285
throw e;
^
TypeError: Cannot read property 'plugin' of null
at AotPlugin.apply (C:\Users\...........\node_modules\@ngtools\webpack\src\plugin.js:174:34)
at Compiler.apply (C:\Users\...........\node_modules\tapable\lib\Tapable.js:270:16)
at WebpackOptionsApply.process (C:\Users\...........\node_modules\webpack\lib\WebpackOptionsApply.js:61:18)
at webpack (C:\Users\...........\node_modules\webpack\lib\webpack.js:32:48)
at C:\Users\...........\node_modules\webpack\lib\webpack.js:22:11
at Array.map (native)
at webpack (C:\Users\...........\node_modules\webpack\lib\webpack.js:21:40)
at processOptions (C:\Users\...........\node_modules\webpack\bin\webpack.js:275:14)
at Object.<anonymous> (C:\Users\...........\node_modules\webpack\bin\webpack.js:335:1)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
Reacted by Peter Luptak, Mathias Raacke, Hugo Campos, David LOIRET, Mark Pevec, Mariano Alvarez, Xiaoxi Zhang and Vasco Fernandes
indeed. having the same problem. I reverted from "@ngtools/webpack": "1.1.5" with "webpack": "2.2.0-rc.1" to "@ngtools/webpack": "1.1.5" with "webpack": "2.1.0-beta.28" and the problem is gone.
I have this error solved but I need to work with @hansl to fix the second error. Does anyone have an example of this plugin used outside of the CLI that I can test?
Activity
daniele-zurico commentedon Dec 19, 2016
Any news on that? I've the same issue
jusefb commentedon Dec 20, 2016
Having the same problem would be great to get a resolution
MrCooper42 commentedon Dec 21, 2016
Also having the same issue! has anyone reverted back to an older version?
CarmenPopoviciu commentedon Dec 23, 2016
indeed. having the same problem. I reverted from
"@ngtools/webpack": "1.1.5"with"webpack": "2.2.0-rc.1"to"@ngtools/webpack": "1.1.5"with"webpack": "2.1.0-beta.28"and the problem is gone.TheLarkInn commentedon Dec 23, 2016
I have this error solved but I need to work with @hansl to fix the second error. Does anyone have an example of this plugin used outside of the CLI that I can test?
colltoaction commentedon Dec 23, 2016
Maybe you can try with https://github.com/angular/universal-starter
daniele-zurico commentedon Dec 23, 2016
@TheLarkInn https://github.com/daniele-zurico/webpack-aot just update the versions and is ready.
It has the essential exactly what you need
CarmenPopoviciu commentedon Dec 23, 2016
@TheLarkInn or this: https://github.com/blacksonic/angular2-aot-webpack
TheLarkInn commentedon Dec 23, 2016
Thank you 🤗
TheLarkInn commentedon Dec 23, 2016
Alright I'm going to leave my findings continuously as I get them.
First issue is access to resolvers needs to happen after they are created:
Since I am working in the JS version and not the TS source, it may look a little different in this example but I already showed this to @hansl:
It looks like now for some reason there is a failure to resolve the virtually created factory file:

freezy commentedon Jan 5, 2017
A bugfix release of this would be really cool. Anything on the horizon?
vlodko commentedon Jan 11, 2017
@hansl do you have any information about release date?
hansl commentedon Jan 18, 2017
It's been released 2 betas ago.
chore(webpack): upgrade webpack to RC 3. (angular#3786)
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
chore(webpack): upgrade webpack to RC 3. (angular#3786)