Skip to content

TypeError: Jotform is not a constructor #38

Description

@jmoyers14

I followed the instructions from the readme to import the Jotform class using esm imports

node version 18.19.0

import Jotform from 'jotform'
const client = new Jotform('mytoken')

TypeError: Jotform is not a constructor

Changing to

import JotformPackage from 'jotform'
const Jotform = JotformPackage.default
const client = new Jotform('mytoken')

solves the problem

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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