question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@angular/core/index has no exported member 'Version'

See original GitHub issue

After 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:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pkozlowski-opensourcecommented, Jan 4, 2017

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-bug

If you can demonstrate the issue in a plunker we can investigate, otherwise this issue is not actionable and will be closed.

0reactions
medhachcommented, Jun 30, 2017

+1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found