Skip to content

import Schema in javascript gives syntax error "SyntaxError: Named export 'Schema' not found" #50

Open
@chrisjameslennon

Description

@chrisjameslennon
import { Schema, validate } from "jtd";

in javascript (i.e. not typescript) gives runtime error
SyntaxError: Named export 'Schema' not found. The requested module 'jtd' is a CommonJS module, which may not support all module.exports as named exports.

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