Skip to content
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

🐛 [Bug]: Sample project codes on components document can not execute after download #274

Open
juying77 opened this issue Oct 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@juying77
Copy link

Version

`-- [email protected]

Angular Version

Angular: 14.2.7

Link to minimal reproduction

https://stackblitz.com/run?file=src%2Fapp%2Fapp.component.ts

Step to reproduce

On the stackblitz.com, download any sample project codes for components document, use Ideal 2022 to open the project directory.

What is expected

Project should be able to run

What is actually happening

I can not build and start the project . The error is :An unhandled exception occurred: Must use import to load ES Module.

Looks point to @angular/compiler/fesm2015/compiler.mjs

Any additional comments (optional)

Some devui support people says it's problem in devDependencies

@kagol
Copy link
Member

kagol commented Oct 21, 2022

@juying77 Thank you for your feedback. The cause of the problem should be that the project downloaded by stackblitz is that the versions of angular-cli and angular are inconsistent.

You can solve this problem by modifying the version of the following dependent packages in devDependencies.

"@angular-devkit/build-angular": "~14.2.6",
"@angular/cli": "~14.2.6",
"@angular/compiler-cli": "~14.2.6",
"typescript": "~4.6.2"

At the same time, we will fix the problem as soon as possible!

@kagol kagol added the bug Something isn't working label Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants