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.

no-barrels tag not working: ERROR in Unexpected value 'undefined' imported by the module 'DynamicModule

See original GitHub issue

I experience the problem described in the pinned issue: https://github.com/gund/ng-dynamic-component/issues/369

After following the guide, and changing the dependency from "ng-dynamic-component": "^6.1.0", to "ng-dynamic-component": "^8.0.1-no-barrels.1", I still encounter the said problem.

Error message upon ng serve:

ERROR in Unexpected value 'undefined' imported by the module 'DynamicModule in /....../node_modules/ng-dynamic-component/ng-dynamic-component.d.ts'

node_modules/ng-dynamic-component/package.json:

{
  "_from": "ng-dynamic-component@^8.0.1-no-barrels.1",
  "_id": "ng-dynamic-component@8.0.1",
  "_inBundle": false,
  "_integrity": "sha512-Ak25QTYmjNVxyZ6ywqRDDjoqAJheFeK0XoHsomwVjdHSiLoQcGfNNj5z51pqoRGpjdDZMSV+J2gaCbRNBeiy3g==",
  "_location": "/ng-dynamic-component",
  "_phantomChildren": {},
  "_requested": {
    "type": "range",
    "registry": true,
    "raw": "ng-dynamic-component@^8.0.1-no-barrels.1",
    "name": "ng-dynamic-component",
    "escapedName": "ng-dynamic-component",
    "rawSpec": "^8.0.1-no-barrels.1",
    "saveSpec": null,
    "fetchSpec": "^8.0.1-no-barrels.1"
  },
  ...

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ardentiacommented, Mar 13, 2021

I am using Angular 11, updated from Angular 8. Deleted node_modules and package-lock.json, cleared the npm cache, reinstalled everything and got the “unknown identifier undefined” error. These are my dependencies:

 "dependencies": {
    "@angular-slider/ngx-slider": "^2.0.3",
    "@angular/animations": "~11.2.5",
    "@angular/common": "~11.2.5",
    "@angular/compiler": "~11.2.5",
    "@angular/core": "~11.2.5",
    "@angular/forms": "~11.2.5",
    "@angular/platform-browser": "~11.2.5",
    "@angular/platform-browser-dynamic": "~11.2.5",
    "@angular/router": "~11.2.5",
    "core-js": "^2.5.4",
    "hammerjs": "^2.0.8",
    "is-docker": "2.0.0",
    "moment-mini": "^2.22.1",
    "ng-dynamic-component": "^8.0.1-no-barrels.1",
    "ngx-bootstrap": "^6.2.0",
    "rxjs": "~6.5.2",
    "tar": "^4.4.10",
    "tslib": "^2.0.0",
    "yfiles": "^2.1.0",
    "zone.js": "~0.10.2"
  }
0reactions
gundcommented, Aug 28, 2022

This should no longer be an issue with latest Angular and Ivy builds. I’m closing this issue as it’s outdated. If you want to reopen the discussion please feel free to open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Unexpected value 'undefined' imported by the module
For anyone facing this same error, my situation was that I have double commas in the imports section imports: [ BrowserModule, HttpModule, FormsModule, ......
Read more >
[Bug] ERROR: Unexpected value 'undefined' imported ... - Issuehunt
ERROR in Unexpected value 'undefined' exported by the module 'DynamicModule ... @angular/cli -> ng-packagr ) you should use special NPM tag - @no-barrels...
Read more >
Unexpected value 'undefined' imported by the module 'AppR ...
compiler.js:2175 Uncaught Error: Unexpected value 'undefined' imported by the module 'AppRoutingModule' at syntaxError.
Read more >
Error: Unexpected value 'undefined' imported by the module ...
what's the problem? can you lead me? thank you. here's the code import { BrowserModule } from '@angular/platform-browser'; import { ErrorHandler ...
Read more >
Unexpected value 'undefined' declared by the module ... - Reddit
I have my test set up with one declaration, the component being tested, and that component only imports Component and Input from @...
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