You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Angular integration failed - '/node_modules/PptxGenJS/dist/pptxgen"' resolves to a non-module entity and cannot be imported using this construct.'
#444
Closed
Prasanth-ECE opened this issue
Dec 3, 2018
· 4 comments
Tried the Ppt generation into the angular 5 project by installing through yarn.
Getting error as '/node_modules/PptxGenJS/dist/pptxgen"' resolves to a non-module entity and cannot be imported using this construct.'
seems the error is around the exporting module.
exported PptxGenJS module be like
class PptxGenJS { }
'export = PptxGenJS.PptxGenJS;' - pptxgen.d.ts
if i change that to
export default class PptxGenJS { }
'export = PptxGenJS;'
The text was updated successfully, but these errors were encountered:
Prasanth-ECE
changed the title
Angular integration failed '/node_modules/PptxGenJS/dist/pptxgen"' resolves to a non-module entity and cannot be imported using this construct.'
Angular integration failed - '/node_modules/PptxGenJS/dist/pptxgen"' resolves to a non-module entity and cannot be imported using this construct.'
Dec 3, 2018
sorry, but both not working for me.
the new version gives me a: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.
I tried a lot of combinations, but always fail
Tried the Ppt generation into the angular 5 project by installing through yarn.
Getting error as '/node_modules/PptxGenJS/dist/pptxgen"' resolves to a non-module entity and cannot be imported using this construct.'
seems the error is around the exporting module.
exported PptxGenJS module be like
class PptxGenJS { }
'export = PptxGenJS.PptxGenJS;' - pptxgen.d.ts
if i change that to
export default class PptxGenJS { }
'export = PptxGenJS;'
source from 'https://stackoverflow.com/questions/39415661/what-does-resolves-to-a-non-module-entity-and-cannot-be-imported-using-this'
then it's working fine.
The text was updated successfully, but these errors were encountered: