Closed patrickbussmann closed 8 years ago
This isn't working for me.
I tried to import like this
import { ImageViewerDirective } from 'ionic-img-viewer/ionic-img-viewer';
And then putting ImageViewerDirective
into my declarations inside app.module.ts
Am still getting
[15:25:25] Error: Module C:\project\node_modules\ionic-img-viewer\ionic-img-viewer.js does not export ImageViewerDirective (imported by C:/project/src/app/app.module.ts)
at Module.trace (C:\project\node_modules\rollup\dist\rollup.js:7706:29)
at ModuleScope.findDeclaration (C:\project\node_modules\rollup\dist\rollup.js:7329:22)
at Scope.findDeclaration (C:\project\node_modules\rollup\dist\rollup.js:5349:39)
at Identifier.bind (C:\project\node_modules\rollup\dist\rollup.js:6497:29)
at C:\project\node_modules\rollup\dist\rollup.js:5149:50
at ArrayExpression.eachChild (C:\project\node_modules\rollup\dist\rollup.js:5163:19)
at ArrayExpression.bind (C:\project\node_modules\rollup\dist\rollup.js:5149:7)
at C:\project\node_modules\rollup\dist\rollup.js:5149:50
at Node.eachChild (C:\project\node_modules\rollup\dist\rollup.js:5166:5)
at Node.bind (C:\project\node_modules\rollup\dist\rollup.js:5149:7)
(node:32968) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 17): Error: Module C:\project\node_modules\ionic-img-viewer\ionic-img-viewer.js does not export ImageViewerDirective (imported by C:/project/src/app/app.module.ts)
Yes the fix is not working!
Temporary fix for the problem that the module can't be imported.
https://github.com/Riron/ionic-img-viewer/issues/3