Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with usage. #31

Open
damontgomery opened this issue Jul 22, 2021 · 0 comments
Open

Help with usage. #31

damontgomery opened this issue Jul 22, 2021 · 0 comments

Comments

@damontgomery
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant