Skip to content

How to require chai in nodejs project? #1630

Answered by 43081j
liaodalin19903 asked this question in Support
Discussion options

You must be logged in to vote

Chai 5 is esm only

There are various GitHub discussions about this if you search.

As mentioned in the other discussions and issues:

  • stick with chai 4
  • move to esm
  • use a dynamic import

One of the above is the solution

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by keithamus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1629 on July 21, 2024 22:41.