Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js build Error in Vue.js Project with vue-tsc and Node 18.20.3 #1

Closed
systemdfan opened this issue Jun 22, 2024 · 7 comments
Closed

Comments

@systemdfan
Copy link

When trying to install lv4, a problem arose. Frontend is not building and nodejs container is not working. The logs contain the following:

> vue-tsc && vite build


/var/www/levach/frontend/node_modules/vue-tsc/bin/vue-tsc.js:68
                        throw err;
                        ^
Search string not found: "for (const existingRoot of buildInfoVersionMap.roots) {"
(Use `node --trace-uncaught ...` to show where the exception was thrown)
@lorkiofficial
Copy link
Collaborator

Hi.This problem is most likely due to the update of typescript to version 5.5(vuejs/language-tools#4484), in the new commit I specified to use the old version 5.4, please update and enter the following commands:

cd frontend
rm -rf node_modules
npm cache clean --force

If problem saved, please report back, I will look for another solution

@lorkiofficial
Copy link
Collaborator

And also i'm updated vue-tsc to version 2.0.22, maybe problem is related to that

@LTo666
Copy link

LTo666 commented Jun 23, 2024

Hi.This problem is most likely due to the update of typescript to version 5.5(vuejs/language-tools#4484), in the new commit I specified to use the old version 5.4, please update and enter the following commands:

cd frontend
rm -rf node_modules
npm cache clean --force

If problem saved, please report back, I will look for another solution

I did the same thing as you mentioned and it works.

Detail: fi3ework/vite-plugin-checker#306 (comment)

@lorkiofficial
Copy link
Collaborator

Hi.This problem is most likely due to the update of typescript to version 5.5(vuejs/language-tools#4484), in the new commit I specified to use the old version 5.4, please update and enter the following commands:

cd frontend
rm -rf node_modules
npm cache clean --force

If problem saved, please report back, I will look for another solution

I did the same thing as you mentioned and it works.

Detail: fi3ework/vite-plugin-checker#306 (comment)

It's really good!
By the way I understand you used vue-tsc 1.0 version?

@systemdfan
Copy link
Author

@LorkiVG thanks, the problem is gone now.

@LTo666
Copy link

LTo666 commented Jun 23, 2024

Hi.This problem is most likely due to the update of typescript to version 5.5(vuejs/language-tools#4484), in the new commit I specified to use the old version 5.4, please update and enter the following commands:

cd frontend
rm -rf node_modules
npm cache clean --force

If problem saved, please report back, I will look for another solution

I did the same thing as you mentioned and it works.
Detail: fi3ework/vite-plugin-checker#306 (comment)

It's really good! By the way I understand you used vue-tsc 1.0 version?

I use vue-tsc@1.8.27 in my local development environment, it works fine, but I don't know what version it used when it build the application in github action, I guess it should be the latest vue-tsc@1

@smzapp
Copy link

smzapp commented Jan 2, 2025

Just in case somebody will encounter this issue, I just installed the latest vue-tsc and it works. The current version is:

"vue-tsc": "^2.2.0"

npm i vue-tsc@latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants