I’m sorry for my bad english.
my fault is that when I want to seo the joints in the module.browser class bootstrap does not appear
app.browser.module.ts;
import { AppComponent } from './app.component';
import { AppModule } from './app.module';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
@NgModule({
bootstrap: [
AppComponent
],
imports:[
BrowserModule.withServerTransition({appId: 'app-root'}),
AppModule,
]
})
export class AppBrowserModule {}
my bad eror
D:çalışmalarcodemyWebSite>ng add @ng-toolkit/universal
Installing packages for tooling via npm.
INFO: Project property is set to 'myWebSite'.
ERROR: Bootstrap not found in ./src/.././src/app/app.browser.module.ts.
ERROR: If you think that this error shouldn't occur, please fill up bug report here: https://github.com/maciejtreder/ng-toolkit/issues/new
INFO: stacktrace has been sent to tracking system.
Nothing to be done.
help me please
2
Answers
You should check where you included Bootstrap.
ERROR: Bootstrap not found in ./src/.././src/app/app.browser.module.ts.
This error points that, it can not find the right path.
After running once
ng add @ng-toolkit/universal
we got our initial files generated and retrieved this error.For me this solution worked:
Now your main.ts looks like this:
bootstrap: [AppComponent]
to your app.module.ts @NgModule configurationng add @ng-toolkit/universal
.withServerTransition({appId:''}),
which you can simply delete. Afterwards you can runng run build:prod
and deploy.bootstrap: [AppComponent]
exists in your app.module.ts and runng run build:prod
again.