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

Can't resolve all parameters for ApplicationModule: (?) #2634

Closed
Riccardo-Andreatta opened this issue Oct 3, 2019 · 10 comments
Closed

Can't resolve all parameters for ApplicationModule: (?) #2634

Riccardo-Andreatta opened this issue Oct 3, 2019 · 10 comments
Labels

Comments

@Riccardo-Andreatta
Copy link

🐛 bug report

Description of the problem

Importing a fresh Angular 8 project inside Codesandbox is causing this issue:

Error
Can't resolve all parameters for ApplicationModule: (?).
▶ 16 stack frames were collapsed.
evaluate
main.ts:11:25
   8 |     enableProdMode();
   9 | }
  10 | 
> 11 | platformBrowserDynamic().bootstrapModule(AppModule)
     |                         ^
  12 |     .catch(err => console.error(err));
  13 | 
View compiled
▶ 19 stack frames were collapsed.
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.
This error overlay is powered by `react-error-overlay` used in `create-react-app`.

Steps to reproduce:

  • Delete everything from the default Codesandbox starter project.
  • Create an Angular 8 project from scratch in your local machine.
  • Upload all the files from this new project inside the empty Codesandbox project.

How has this issue affected you? What are you trying to accomplish?

I am trying to recreate an Angular 8 environment inside Codesandbox.

Link to sandbox: [link](https://codesandbox.io/s/angular-8-environment-k6jo3

)

Your Environment

Software Name/Version
Сodesandbox
Browser Chrome
Operating System Mac
@lbogdan
Copy link
Contributor

lbogdan commented Oct 18, 2019

Hey @Riccardo-Andreatta ,

Here's an article about how to make Angular 8 work in CodeSandbox: https://scotch.io/@mathieu-vacher/how-to-build-a-template-with-angular-material-v8 . Following the steps there I ended up with a working Angular 8 sandbox: https://codesandbox.io/s/angular-9hbmc . Does that address your issue?

@rlee1990
Copy link

I have the same issue

@rlee1990
Copy link

@lbogdan that didn’t help me at all

@waterplea
Copy link

Happened to me too. I wanted to deploy my github demo for a library like I used to do but for some reason I'm getting this error (

@garethx
Copy link
Contributor

garethx commented Feb 7, 2020

As a workaround, if you upload your locally exported app to a blank node container sandbox rather than the Angular client sandbox then it works. See https://codesandbox.io/s/patient-pond-zx5rx for example.

@waterplea
Copy link

Looks like adding this:
import "core-js/proposals/reflect-metadata";
to main.ts helps. However I still cannot make my sandbox compile in ES2015 :(

@ChristianGalvez23
Copy link

Same problem, but in my case, I just created a Angular CodeSandbox and everything was going well but suddenly solution threw the error which until now I don't know what it means or what caused this.

@alsharifnahas
Copy link

I had the same issue in the begging, then i added:
import "core-js/proposals/reflect-metadata";
To the main.ts file
I also added core-js dependency. It worked for me after adding the dependency.

@github-actions
Copy link

github-actions bot commented Dec 3, 2020

This issue has automatically been marked stale because there has been no activity in a while. Please leave a comment if the issue has not been resolved, or if it is not stale for any other reason. After 2 weeks, this issue will automatically be closed, unless a comment is made or the stale label is removed.

@github-actions github-actions bot added the stale label Dec 3, 2020
@github-actions
Copy link

This issue has been automatically closed because there wasn't any activity after the previous notice or the stale label wasn't removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants