18 Replies
I can't reproduce, what is npx nx run twenty-front:typecheck output?
Your IDE might be using the wrong typescript version
We are currenty using 5.3.3 btw, I think we should upgrade to 5.4.5, both should work
I am also on 5.3.3
Also, I do get the same error by running the command
Getting this error as well.
could you do
yarn
?
(unrelated but you can check VSCode typescript version here:)I changed typescript version for my Code Editor to 5.3.3 and did
yarn
as well. These are the issued I am getting when I run
yarn nx start twenty-front
for the
js-levenshtein
package, Types haven't been mentioned in Package.json file. (main branch)
If it is working for you then your package.json might already have it.
installing @types/js-levenshtein
worked for me. (For that particular error)ok, I'm deleting all my node_modules an re-installing to see if I can reproduce
I don't face the issue
I can find @types/js-levenshtein in yarn.lock
so they should be installed while running yarn
Can you check if
@types/js-levenshtein
is present in your package.json file ?it is not but it does not matter as the yarn.lock is the source of truth while running yarn
yarn why @types/js-levenshtein
it's actually a dependency of msw
I removed my
node_modules
, yarn.lock
then I installed dependencies again.don't remove the yarn.lock 🙂
you are on main branch, right?
Yeah
it's there
so, you should have it if you do 'yarn'
you should never delete the yarn.lock file
Got it. My bad.
Thanks for the help
no worries!