changeDPI icon indicating copy to clipboard operation
changeDPI copied to clipboard

Uncaught ReferenceError: exports is not defined

Open rlyttle opened this issue 4 years ago • 0 comments

Getting Uncaught ReferenceError: exports is not defined upon loading my webapp

Details

Angular 12 webapp In package.json: "changedpi": "^1.0.4", "node_modules/changedpi/dist/index.js" added to angular.json under architect.build.scripts declare module 'changedpi' added to src/typings.d.ts Imported into component using import * as changedpi from 'changedpi';

Upon loading webapp: image

Clicking on error shows source: image

Can anyone advise if I've integrated incorrectly, or if there's an underlying issue in the library?

rlyttle avatar Nov 20 '21 11:11 rlyttle