angular
angular copied to clipboard
angular.io/errors is incomplete
Describe the problem that you experienced
I encountered an NG0403 error when refactoring my code. I could not find this on the angular.io/errors site, nor anywhere else on the web. Searching through the codebase shows there to be a single mention of this error in "packages/core/test/application_ref_spec.ts";
I am not experienced with angular or its internals so i won't venture to make a pull request to the site itself, but there are errors NG0402 - NG0406 that are also listed in this file not found in the errors site. Presumably they may be encountered as well.
Enter the URL of the topic with the problem
https://angular.io/errors
If this problem caused an exception or error, please paste it here
ERROR Error: NG0403
at n._moduleDoBootstrap (main.js:1:104160)
at main.js:1:103795
at v.invoke (polyfills.js:1:6530)
at Object.onInvoke (main.js:1:97278)
at v.invoke (polyfills.js:1:6470)
at M.run (polyfills.js:1:1926)
at polyfills.js:1:16727
at v.invokeTask (polyfills.js:1:7148)
at Object.onInvokeTask (main.js:1:97094)
at v.invokeTask (polyfills.js:1:7069)
Provide any additional information here in as much as detail as you can
Running in edge webview2 with tauri on windows.
This page references the errors documents in here.
This page references the errors documents in here.
I saw that page, I considered making a PR there but this is the only context given with the error: NG0403: The module MyModule was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.
The other messages have similar text.
I don't consider myself knowledgeable enough about the API to recommend a remedy or contribute anything meaningful aside from making a note here.
This one is quite trivial,
In your main.ts you probably have platformBrowserDynamic().bootstrapModule(AppModule).
AppModule is the boostrapped module and this module is missing the boostrap entry :
@NgModule({
imports: [ BrowserModule, FormsModule ], // some imports.
declarations: [ AppComponent ], // all the components /
bootstrap: [ AppComponent ] // The component at the root at the app, NG403 is triggered when missing.
})
This one is quite trivial,
In your
main.tsyou probably haveplatformBrowserDynamic().bootstrapModule(AppModule).
AppModuleis the boostrapped module and this module is missing theboostrapentry :@NgModule({ imports: [ BrowserModule, FormsModule ], // some imports. declarations: [ AppComponent ], // all the components / bootstrap: [ AppComponent ] // The component at the root at the app, NG403 is triggered when missing. })
I appreciate your help but again to be clear, I am not looking for assistance, I had already solved the issue for myself. I'm raising an issue that the page which is supposed to document angular's enumerated runtime errors has not done so completely - hence why I selected the "issue with angular.io" option, as well as named this issue as being one of angular.io's completeness.
Is this not the correct forum to do so?
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.