From 86108cca5502d6ca0c4960c6c5b6817d08ea5ccf Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 22 Dec 2020 09:29:30 +1000 Subject: [PATCH] mention deleting ts/node_modules in the docs https://forums.ankiweb.net/t/strange-behaviour-in-the-html-editor/5796/6 --- docs/development.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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