diff --git a/docs/development.md b/docs/development.md index 2319322f1..14ffca0d7 100644 --- a/docs/development.md +++ b/docs/development.md @@ -188,6 +188,17 @@ Audio playing requires `mpv` or `mplayer` to be in your system path. Recording also requires `lame` to be in your system path. +## Build errors and cleaning + +If you get errors with @npm and node_modules in the message, try deleting the +ts/node_modules folder. + +Unlike the old Make system, a "clean build" should almost never be required +unless you are debugging issues with the build system. But if you need to get +things to a fresh state, you can run `bazel clean --expunge`. Afte doing so, +make sure you remove the ts/node_modules folder, or subsequent build commands +will fail with a "no such file or directory node_modules/anki" message. + ## Tracing build problems You can run bazel with '-s' to print the commands that are being executed. @@ -212,14 +223,6 @@ in the collection2.log file will also be printed on stdout. If ANKI_PROFILE_CODE is set, Python profiling data will be written on exit. -## Cleaning - -Unlike the old Make system, a "clean build" should almost never be required -unless you are debugging issues with the build system. But if you need to get -things to a fresh state, you can run `bazel clean --expunge`. Afte doing so, -make sure you remove the ts/node_modules folder, or subsequent build commands -will fail with a "no such file or directory node_modules/anki" message. - ## Mixing development and study You may wish to create a separate profile with File>Switch Profile for use