-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Uncaught 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.
The text was updated successfully, but these errors were encountered: