Skip to content

Uncaught ReferenceError: exports is not defined #16

@rlyttle

Description

@rlyttle

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions