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.

Cannot get final name for export "some-component" in "some-module"

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.3.0 node: 7.4.0 os: win32 x64 @angular/animations: 4.3.5 @angular/common: 4.3.5 @angular/compiler: 4.3.5 @angular/core: 4.3.5 @angular/forms: 4.3.5 @angular/http: 4.3.5 @angular/platform-browser: 4.3.5 @angular/platform-browser-dynamic: 4.3.5 @angular/router: 4.3.5 @angular/cli: 1.3.0 @angular/compiler-cli: 4.3.5 @angular/language-service: 4.3.5

Repro steps.

Create a project Add a component with some additional exports in the same file. run ng b --prod

The log given by the failure.

Error : Cannot get final name for export “ToggleRowEvent”…/node_modules/@controls/grids/grid.component.ts" (known exports: ColumnFilterTypes true, known reexports:)

Desired functionality.

It compiles.

Mention any other details that might be useful.

The problem looks to be caused by a webpack issue, see https://github.com/webpack/webpack/issues/5508 where they recommend that the angular cli is updated to use the latest webpack.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
robencommented, Aug 25, 2017

Thanks, I just reverted angular-cli to 1.2.x for now.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SomeComponent, but is not exported from the top-level library ...
This class is visible to consumers via SomeModule -> SomeComponent, but is not exported from the top-level library entrypoint. Anyone solved ...
Read more >
Resolve the "Export EXPORT_NAME cannot be updated as it ...
You get this error when one or more stacks are importing an exported output value from the stack that you want to update...
Read more >
Component registration - Knockout.js
The component name can be any nonempty string. It's recommended, but not mandatory, to use lowercase dash-separated strings (such as your-component-name ) ...
Read more >
Documentation - TypeScript 3.8
TypeScript 3.8 adds a new syntax for type-only imports and exports. ... When using import type to import a class, you can't do...
Read more >
NgModule FAQ - Angular
An NgModule can even export a module that it doesn't import. ... visible to every class in the application that knows the provider's...
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