someModule is not exported by node_modules\someModule
See original GitHub issueType 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:
- Created 6 years ago
- Comments:14 (5 by maintainers)
Top GitHub Comments
~~ 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
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.