Skip to content

Help with usage. #31

@damontgomery

Description

@damontgomery

Should I be able to use this library in a browser?

I have a TypeScript project and am importing it like this,

import waitForExpect from 'wait-for-expect';

When I run Web Test Runner which includes Mocha / Chai, I get these notices.

 🚧 Browser logs on Chromium:
      SyntaxError: The requested module './../../../../../node_modules/wait-for-expect/lib/index.js' does not provide an export named 'default'
 🚧 Browser logs on Firefox:
      SyntaxError: import not found: default
 🚧 Browser logs on Webkit:
      SyntaxError: Importing binding name 'default' cannot be resolved by star export entries.

The TypeScript compiler doesn't complain, just the browser it seems.

Apologies if this is a simple question.

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