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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught ReferenceError: __importDefault is not defined #32215
Comments
Just been updating my cli and am now getting the same error. Previously worked with v7 |
I'm having the same problem after updating the CLI. |
For me, the fix was just downgrade typescript package (3.4.5 works fine) |
Happens also with the latest 8.x release ! |
I cant downgrade tsc version, because in ng --version its always shows me 3.6.4. I can only change tsc globally and in local project, but in package Angular CLI (ng --version) it still shows me the newest version of typescript. Do you know, how to downgrade tsc dicectly in Angular CLI package? |
I just updated package.json such that typescript points to 3.5.3 and did an npm install. That's it. |
Because my TypeScript version cannot be downgraded, I have overridden this method. |
Time to get this one up a tad bit; Angular 9.0.0-next.14 actually requires typescript between 3.6.4 and 3.7.0, causing a huge problem with the template imports as this is caused by TS 3.6.4 or higher. zengpl's solution, one message up, works but is really ugly. |
I have just updated the project to v9.0.0-next.14 / TS v.3.6.4 with |
ng v9.0.0-rc.0 and ts v3.6.4 not working for me. |
Closing my issue as it is resolved in the latest version. |
issue still persist with .rc version. Angular CLI: 9.0.0-rc.1 Package Version@angular-devkit/architect 0.900.0-rc.1 and I am using ts v3.6.4 |
I had exactly the same issue with the following versions:
What fixed it for me was the update to the same angular/cli version
|
I try typescript 3.6, 3.7 and still not working. I don't think typescript is buggish, but ivy how orginize imports |
I get the same error with rc6, typescript 3.6.4 |
I get the same error with 9.0.0-rc.7,typescript 3.6.4... |
Updating to "@angular-devkit/build-angular": "~0.900.0-rc.7" solved it at my side. |
After the checking of the official AIO package.json, the Angular team stay using ^9.0.0-rc.3 and the "@angular-devkit/build-angular": "~0.900.0-rc.3" Until today is work as a charm https://github.com/angular/angular/blob/master/aio/package.json |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Affected Package
The issue is caused by package @angular/...."9.0.0-next.2"
Is this a regression?
Yes, the previous version in which this bug was not present was: @angular/...."8.0.0"
Description
App compiles with
ng serve
but is not being loaded in the browser with the above error referring to a line in the components metadata:templateUrl: './login.component.html',
馃敩 Minimal Reproduction
https://github.com/akolybelnikov/repro-issue-ng-9
馃敟 Exception or Error
馃實 Your Environment
Angular Version: 9.0.0-next.2
Anything else relevant?
MacOS
The text was updated successfully, but these errors were encountered: