Skip to content

Cannot find module 'xstate' or its corresponding type declarations #1519

Answered by Andarist
lanmonster asked this question in Q&A
Discussion options

You must be logged in to vote

My preferred way to work with the codebase is to run yarn dev in the root. This builds all packages first and then starts a test with a watcher. Alternatively, you can run yarn build in the root and then pick a package in which you'd like to run tests.

yarn dev ensures that all packages are constantly re-built though, so you won't end up with weird situations that a dependant package is being tested against outdated dependency code even though you have made changes to source files of the particular dependency.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lanmonster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants