@angular/core/index has no exported member 'Version'
See original GitHub issueAfter adding import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
to my app I receive following error:
ERROR in [at-loader] node_modules@angular\forms\src\version.d.ts:13:10 Module ‘“…node_modules/@angular/core/index”’ has no exported member ‘Version’.
Angular: 2.1.0
ng-bootstrap: 1.0.0-alpha.16
Bootstrap: 4.0.0-alpha.5
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { AppComponent, Header, SearchBar } from './components/index';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
imports: [ BrowserModule, HttpModule ],
declarations: [ AppComponent, Header, SearchBar ],
bootstrap: [ AppComponent ]
})
export class AppModule {}
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Ng serve throwing @angular/core/core has no exported ...
This is caused by a breaking change in Angular where code generated using angular version x is not compatible with angular version y ......
Read more >node_modules/@angular/core/core"' has no exported member ...
Hello! We are facing an issue as mentioned in the title. When we are doing ng build than its shows an error, see...
Read more >Errors: has no exported member - Angular - EJ 2 - Syncfusion
We can reproduce the reported issue in latest NPM version (16). So that Angular always recommends to use active LTS or maintenance LTS...
Read more >[Pro User] No exported member - Material Design for Bootstrap
Hi, I on index.ts file, under node_modules/ng-mdb-pro, the error below Error:(2, 9) TS2305: Module '../node_modules/ng-mdb-pro/free/index' has no exported ...
Read more >error ts2305: module '"@angular/core"' has no exported ...
The angular incompatibility could be in your code or one of its dependancies. All the people saying "I get this in x library"...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would suspect that you are mixing up version of Angular modules (forms and core). In any case we are not importing any
Version
symbol(s) and can’t investigate / help without a minimal reproduction scenario using plunker or similar: https://github.com/ng-bootstrap/ng-bootstrap/blob/master/README.md#you-think-youve-found-a-bugIf you can demonstrate the issue in a plunker we can investigate, otherwise this issue is not actionable and will be closed.
+1