Value at position x in the NgModule.imports of AppModule is not a reference: [object Object]See original GitHub issue
I’m submitting a:
- bug report
- feature request
- question / support request
Upgradeing to Angular9 and using RecaptchaModule.forRoot() breaks the app. Remove the .forRoot() fixes this. However, this wasent very clear from the insane amounts of errors that came. Others might run into this issue, and this is why i decided to post it here.
.forRoot() was once required to setup https://github.com/DethAriel/ng-recaptcha/commit/7fb97fb04049dd058a2394ecef297dac7c6104d1#diff-04c6e90faac2675aa89e2176d2eec7d8
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
removing .forRoot() doesn’t fix the issue it just lets the app compile but i still get an error when the app is running
+1. Got me stuck in update to Angular 9, when I was running
ng build --prod possibly due to AOT or buildOptimizer.
ng build or
ng serve worked as it should.
After countless iterations of removing modules, I found out that
ng-recaptcha was the issue. Removed it, my project build correctly.
Stumbled upon this issue, added the module back and removed
.forRoot() and this fixed the issue.