Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUncaught Error: Can't resolve all parameters for e: (?) #2770
Comments
|
i run: |
|
I was able to reproduce and fix this locally. Apparently it's an issue with webpack bundling. Manually add the following to the top of your import 'reflect-metadata'; |
|
See NativeScript/nativescript-angular#1540 about the same issue |
|
i try the following:
or
and other variants allways with reflect-metadata uncommented and the problem persists. i don't have the other question, is this building in jit or aot? Thanks |
|
It has nothing to do with that project; they just had a similar issue. I was able to reproduce this, but adding the config.mode = 'development';and try building again, so we can see the un-minified error. |
This fixed the issue for me as well. |
|
That change isn't meant to fix the issue, just turn off minification so that we can debug the error better, but if the error goes away when you set Webpack to development mode, then it has to have something to do with minification for builds. |
|
yeah the error ahs something to do with the reflect polyfill.. I have the same issue. |
|
This is a problem with UglifyJs. If you set the webpack mode to 'production' it enabels UglifyJsPlugin and then it fails.. I tried differetn options for the UglifyJsPlugin but I cannot get it to work. I think the dependency injection breaks when minification is applied. Do we need some kind of annotation plugin ? |
|
I did this at top of my
|
|
@Awk34 I solve the problem adding reflect-metadata on top of app.ts
|
|
@koraysels I replace the uglify-js to terser. |
|
Moving the imports from The Uglifier is not the issue (the issue is still there when commenting it in SolutionIn Before:
Now:
Here is what I have included at the top of
|
|
@tschaffter it solved the problem for me |


After create project using the generator, i built it in production environment and when i load the app the follow error appears.