You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should I be able to use this library in a browser?
I have a TypeScript project and am importing it like this,
importwaitForExpectfrom'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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: