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.
Should I be able to use this library in a browser?
I have a TypeScript project and am importing it like this,
When I run Web Test Runner which includes Mocha / Chai, I get these notices.
The TypeScript compiler doesn't complain, just the browser it seems.
Apologies if this is a simple question.