Error: Can't resolve all parameters for ApplicationModule: (?)
up vote
2
down vote
favorite
I want to create Angular application without CLI.
After that I get an error:
Error: Can't resolve all parameters for ApplicationModule: (?).
Project contains couple files, main of this is:
• main.ts
import 'zone.js/dist/zone'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './modules/app.module';
platformBrowserDynamic().bootstrapModule(AppModule)
• component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `Hello World`
})
export class AppComponent {}
• module.ts
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "../components/app.component";
@NgModule({
imports: [
BrowserModule,
],
declarations: [
AppComponent
],
bootstrap: [
AppComponent
]
})
export class AppModule {}
I search on StackOverflow before, but I can't found solution.
Similar error occur when someone wants to inject service without @Injectable decorator. In my case I don't have any service, so that am afraid nobody has the same error.
Angular CLI is so simple to start project, but only when you want setup project without generator, you know what parts are necessary to create during bootstrap application.
angular reflect
add a comment |
up vote
2
down vote
favorite
I want to create Angular application without CLI.
After that I get an error:
Error: Can't resolve all parameters for ApplicationModule: (?).
Project contains couple files, main of this is:
• main.ts
import 'zone.js/dist/zone'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './modules/app.module';
platformBrowserDynamic().bootstrapModule(AppModule)
• component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `Hello World`
})
export class AppComponent {}
• module.ts
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "../components/app.component";
@NgModule({
imports: [
BrowserModule,
],
declarations: [
AppComponent
],
bootstrap: [
AppComponent
]
})
export class AppModule {}
I search on StackOverflow before, but I can't found solution.
Similar error occur when someone wants to inject service without @Injectable decorator. In my case I don't have any service, so that am afraid nobody has the same error.
Angular CLI is so simple to start project, but only when you want setup project without generator, you know what parts are necessary to create during bootstrap application.
angular reflect
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I want to create Angular application without CLI.
After that I get an error:
Error: Can't resolve all parameters for ApplicationModule: (?).
Project contains couple files, main of this is:
• main.ts
import 'zone.js/dist/zone'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './modules/app.module';
platformBrowserDynamic().bootstrapModule(AppModule)
• component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `Hello World`
})
export class AppComponent {}
• module.ts
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "../components/app.component";
@NgModule({
imports: [
BrowserModule,
],
declarations: [
AppComponent
],
bootstrap: [
AppComponent
]
})
export class AppModule {}
I search on StackOverflow before, but I can't found solution.
Similar error occur when someone wants to inject service without @Injectable decorator. In my case I don't have any service, so that am afraid nobody has the same error.
Angular CLI is so simple to start project, but only when you want setup project without generator, you know what parts are necessary to create during bootstrap application.
angular reflect
I want to create Angular application without CLI.
After that I get an error:
Error: Can't resolve all parameters for ApplicationModule: (?).
Project contains couple files, main of this is:
• main.ts
import 'zone.js/dist/zone'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './modules/app.module';
platformBrowserDynamic().bootstrapModule(AppModule)
• component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `Hello World`
})
export class AppComponent {}
• module.ts
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "../components/app.component";
@NgModule({
imports: [
BrowserModule,
],
declarations: [
AppComponent
],
bootstrap: [
AppComponent
]
})
export class AppModule {}
I search on StackOverflow before, but I can't found solution.
Similar error occur when someone wants to inject service without @Injectable decorator. In my case I don't have any service, so that am afraid nobody has the same error.
Angular CLI is so simple to start project, but only when you want setup project without generator, you know what parts are necessary to create during bootstrap application.
angular reflect
angular reflect
edited Nov 22 at 16:16
asked Nov 22 at 16:06
piecioshka
778612
778612
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
Install core-js by command:
npm i core-js
Add in
main.ts
file:
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
Btw. I'm spent whole day to resolve this.
can you provide full code for example publish on github? i am trying to archive same test app and get same error
– devi
Nov 29 at 14:19
You can do it, when remove core-js dependency. Currently my project is grown and I cannot published it.
– piecioshka
Dec 3 at 22:38
can you look at this github.com/gdbd/Angular_no_cli ? the code is almost same but i get error "Can't resolve all parameters for ApplicationModule: (?)."
– devi
Dec 4 at 20:15
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Install core-js by command:
npm i core-js
Add in
main.ts
file:
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
Btw. I'm spent whole day to resolve this.
can you provide full code for example publish on github? i am trying to archive same test app and get same error
– devi
Nov 29 at 14:19
You can do it, when remove core-js dependency. Currently my project is grown and I cannot published it.
– piecioshka
Dec 3 at 22:38
can you look at this github.com/gdbd/Angular_no_cli ? the code is almost same but i get error "Can't resolve all parameters for ApplicationModule: (?)."
– devi
Dec 4 at 20:15
add a comment |
up vote
1
down vote
Install core-js by command:
npm i core-js
Add in
main.ts
file:
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
Btw. I'm spent whole day to resolve this.
can you provide full code for example publish on github? i am trying to archive same test app and get same error
– devi
Nov 29 at 14:19
You can do it, when remove core-js dependency. Currently my project is grown and I cannot published it.
– piecioshka
Dec 3 at 22:38
can you look at this github.com/gdbd/Angular_no_cli ? the code is almost same but i get error "Can't resolve all parameters for ApplicationModule: (?)."
– devi
Dec 4 at 20:15
add a comment |
up vote
1
down vote
up vote
1
down vote
Install core-js by command:
npm i core-js
Add in
main.ts
file:
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
Btw. I'm spent whole day to resolve this.
Install core-js by command:
npm i core-js
Add in
main.ts
file:
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
Btw. I'm spent whole day to resolve this.
answered Nov 22 at 16:06
piecioshka
778612
778612
can you provide full code for example publish on github? i am trying to archive same test app and get same error
– devi
Nov 29 at 14:19
You can do it, when remove core-js dependency. Currently my project is grown and I cannot published it.
– piecioshka
Dec 3 at 22:38
can you look at this github.com/gdbd/Angular_no_cli ? the code is almost same but i get error "Can't resolve all parameters for ApplicationModule: (?)."
– devi
Dec 4 at 20:15
add a comment |
can you provide full code for example publish on github? i am trying to archive same test app and get same error
– devi
Nov 29 at 14:19
You can do it, when remove core-js dependency. Currently my project is grown and I cannot published it.
– piecioshka
Dec 3 at 22:38
can you look at this github.com/gdbd/Angular_no_cli ? the code is almost same but i get error "Can't resolve all parameters for ApplicationModule: (?)."
– devi
Dec 4 at 20:15
can you provide full code for example publish on github? i am trying to archive same test app and get same error
– devi
Nov 29 at 14:19
can you provide full code for example publish on github? i am trying to archive same test app and get same error
– devi
Nov 29 at 14:19
You can do it, when remove core-js dependency. Currently my project is grown and I cannot published it.
– piecioshka
Dec 3 at 22:38
You can do it, when remove core-js dependency. Currently my project is grown and I cannot published it.
– piecioshka
Dec 3 at 22:38
can you look at this github.com/gdbd/Angular_no_cli ? the code is almost same but i get error "Can't resolve all parameters for ApplicationModule: (?)."
– devi
Dec 4 at 20:15
can you look at this github.com/gdbd/Angular_no_cli ? the code is almost same but i get error "Can't resolve all parameters for ApplicationModule: (?)."
– devi
Dec 4 at 20:15
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53434713%2ferror-cant-resolve-all-parameters-for-applicationmodule%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown