Skip to content

Bug: "File 'PATH_TO/node_modules/spryng/dist/index.d.ts' is not a module." #1

@maxstevens-nl

Description

@maxstevens-nl

import { Spryng } from 'spryng';
Importing the spryng module in Typescript as above gives the error stated in the title.
I fixed it locally by replacing the 'index.js' and 'index.d.ts' files in the 'dist' folder with the spryng ones and removing those, and updating the axios dependency to '^0.21.0'.

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