[Solved] "npm run build" failed due to a typescript version check #229
-
I've followed the steps to build the app but the command "npm run build" failed and raised the following error: The version of typescript I use wad installed with my system: Pop!Os 21.04 (based on ubuntu hirsute 21.04) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
hello, @LaurentOngaro could you please give more information about your environment? NPM version? How did you install the project dependencies? |
Beta Was this translation helpful? Give feedback.
-
I've followed the instructions you wrote in the readme and in the page you have recommanded. I've installed the dependencies by running My npm version is 7.5.2 As a try, I've added the line This error disappeared, but the build process finally fails with another compilation error and these are the lines at the end of the log file:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm not a typescript user, so I can't understand where the problem is. |
Beta Was this translation helpful? Give feedback.
-
I think I've found my error. So my advice... is not to always follow the security advices... Thanks for your help and your quick answer |
Beta Was this translation helpful? Give feedback.
I think I've found my error.
At my first try, I've executed
npm audit fix
beforenpm run build
and it broke the dependenciesWithout that, the build process is running well.
So my advice... is not to always follow the security advices...
Thanks for your help and your quick answer