Comments (2)
this is because chai 5.x is esm-only
if you're in a commonjs project, you should stick to 4.x (which we are still supporting) or migrate to ESM (add type: "module"
to your package.json
).
you can see an example of an esm project working with ts-node and mocha here:
https://gist.github.com/43081j/78ce1392abb5043b02a29355006880a5/
from chai.
Thanks, it worked great!
from chai.
Related Issues (20)
- mutating chai exports no longer works in v5 HOT 22
- Add support for Promise HOT 16
- SyntaxError: Invalid or unexpected token HOT 1
- [email protected] syntax error in assertion.js:69 HOT 2
- NPM README and GitHub README don't match
- @types/chai seems not to be adapted to version 5.0.0 HOT 9
- Documentation revamp HOT 3
- please provide commonjs exports again HOT 5
- Migrating to Chai 5.0 in browser
- use() function only returns plugin first time HOT 1
- assert.throws() does not work correctly in node/vm spawned context HOT 5
- chai-spies broken in v5.1.0 HOT 1
- The plugin API makes me want to murder someone
- without "@types/chai" my IDE didn't recognize some attributes
- chai-subset is unmaitained HOT 8
- ChaiJS Website not showing API reference docs HOT 6
- Better user experience when using `.include` without `.deep`.
- Feature Request: a hook to preprocess values that crash Chai diff generation HOT 2
- Chatting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chai.