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.

someModule is not exported by node_modules\someModule

See original GitHub issue

Type of Issue

  • [?] Bug Report
  • Feature Request

Description

I’ve just updated packagr to version 1.2.0 and getting this error:

Building Angular library from ng-package.json ‘default’ is not exported by ‘node_modules\whatwg-fetch\fetch.js’ Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification

BUILD ERROR ‘deflate’ is not exported by node_modules\pako\dist\pako_deflate.js Error: ‘deflate’ is not exported by node_modules\pako\dist\pako_deflate.js at error (C:\Projects\assent-compliance\ng-survey-player\node_modules\ng-packagr\node_modules\rollup\dist\rollup.js:185:14) at Module.error (C:\Projects\assent-compliance\ng-survey-player\node_modules\ng-packagr\node_modules\rollup\dist\rollup.js:8390:3) at Module.trace (C:\Projects\assent-compliance\ng-survey-player\node_modules\ng-packagr\node_modules\rollup\dist\rollup.js:8487:10) at ModuleScope.findVariable (C:\Projects\assent-compliance\ng-survey-player\node_modules\ng-packagr\node_modules\rollup\dist\rollup.js:8093:22) at Node.bind (C:\Projects\assent-compliance\ng-survey-player\node_modules\ng-packagr\node_modules\rollup\dist\rollup.js:6996:31) at eachChild.child (C:\Projects\assent-compliance\ng-survey-player\node_modules\ng-packagr\node_modules\rollup\dist\rollup.js:5819:34) at keys.forEach.key (C:\Projects\assent-compliance\ng-survey-player\node_modules\ng-packagr\node_modules\rollup\dist\rollup.js:5847:5) at Array.forEach (native) at Node.eachChild (C:\Projects\assent-compliance\ng-survey-player\node_modules\ng-packagr\node_modules\rollup\dist\rollup.js:5840:13) at Node.bind (C:\Projects\assent-compliance\ng-survey-player\node_modules\ng-packagr\node_modules\rollup\dist\rollup.js:5819:8)

How To Reproduce

have pako in dependencies, I suppose

Expected Behaviour

successfully built Angular module

Version Information

ng-packagr: v1.2.0
node: v7.10.0
@angular: v4.4.3
rxjs: 5.4.3
zone.js: 0.8.17
"dependencies": {
    "@progress/kendo-angular-dateinputs": "^1.0.5",
    "@progress/kendo-angular-dropdowns": "^1.1.2",
    "@progress/kendo-angular-excel-export": "^1.0.3",
    "@progress/kendo-angular-grid": "^1.2.3",
    "@progress/kendo-angular-inputs": "^1.0.7",
    "@progress/kendo-angular-intl": "^1.2.2",
    "@progress/kendo-angular-l10n": "^1.0.2",
    "@progress/kendo-data-query": "^1.0.6",
    "@progress/kendo-drawing": "^1.1.2",
    "@progress/kendo-theme-default": "^2.39.0",
    "@angular/animations": "^4.2.4",
    "@angular/common": "^4.2.4",
    "@angular/compiler": "^4.2.4",
    "@angular/core": "^4.2.4",
    "@angular/forms": "^4.2.4",
    "@angular/http": "^4.2.4",
    "@angular/platform-browser": "^4.2.4",
    "@angular/platform-browser-dynamic": "^4.2.4",
    "@angular/router": "^4.2.4",
    "core-js": "^2.4.1",
    "rxjs": "^5.4.2",
    "zone.js": "^0.8.14",
    "bootstrap-sass": "^3.3.7",
    "ng2-formio": "1.0.0-rc.34",
    "text-mask-all": "github:text-mask/text-mask",
    "dateformat": "^2.0.0",
    "pouchdb": "6.2.0"
  }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cnadeaucommented, Oct 7, 2017

~~ It really answers the question very clearly and obviously works 👍 ~~

Thank you very much for this lib, explanation and keep up the good work!

Cheers! 🎉

EDIT: @tauinbox, you’re right. The actual ng build works, not the packagr build, sorry for the misleading comment

0reactions
github-actions[bot]commented, Jun 19, 2020

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

0 - Stack Overflow
Attempted Import error : 'SomeModule' is not exported from './some/path'; · Ask Question. Asked 1 year, 4 months ago.
Read more >
Solving "NAME is not exported by MODULE" When Using ...
I determined this to be true, and the fix to be a matter of changing the export key to be a relative path...
Read more >
Test steps are not exported while exporting testcases to the ...
Can't export test steps to the word file. Cause. There are a few reasons why this can happen. Please see below for troubleshooting...
Read more >
Export and Import - The Modern JavaScript Tutorial
A module has either named exports or the default one. As there may be at most one default export per file, the exported...
Read more >
Documentation - Modules - TypeScript
A re-export does not import it locally, or introduce a local variable. ... Some module loaders such as SystemJS and AMD allow non-JavaScript...
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