-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 18 support : @achrinza/[email protected]: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17" #7424
Comments
the same |
我清除了 yarn 的缓存 |
I see from your error you are on version you need to be on |
And version 9.2.8+ for node 21.x, see here. |
Works flawlessly for me (both for Vue3 and Nuxt3). @gankush please make sure that you're using Vite and not Webpack. The original package |
True for new projects, but what if you can't migrate existing projects to Vue.js 3.x and need to stay on Vue.js 2.x due to compatibility reasons? There are still some IoT devices having older browser engines which are still in production. |
Thank you kissu and jokey! the problem here is that the project is old and I can't use vite or upgrade the entire bundle. I have to slick on using the vue cli which is turn has dependency on @achrinza/[email protected] (which is not compatible with node versions 18 or higher) |
@jokay Vue2 is EOL by the end of the year. You probably had enough time to migrate towards Vue3 at this point, the leap is not that big. @gankush so here we're talking about upgrading towards a recent Node version but not bumping up the Vite part? If you move forward on one side, expect to be moving on the other. You can't use the latest greatest thing while keeping some legacy alongside. Either keep both legacy or upgrade both. If you have the NEED to upgrade, then you can probably take some time to upgrade it or pay some people for it. It's like saying
|
@kissu yooooo, it's a hardware dependency, we are not talking about exchanging 1 private consumer device but thank you for your advice 🤷🏼♂️ Don't use your yearly iPhone exchange to have the very latest device as reference for everyone's situation 😉 |
@jokay using mid-tier Android device here so far, not a weirdo changing phone yearly either. 😂 My point still stands, either think about things ahead of time (especially if relying on JS) or hire a few people to be able to migrate towards things faster. |
@jokay have you had any success in this? Do we really need to move to vite? |
@KarmaBlackshaw sorry no news about this, we use Vue.js 3.x with vite where possible and for the rest, the situation is unchanged. |
What do you propose else? |
There are unfortunately not a lot of alternatives because Webpack is just a dying boat. Gonna either need a webpack expert to maintain the legacy or some gentle migration towards Vite (the migration may not be that difficult). You will need to do it at some point anyway rather not postponing it. |
I think this is pretty big assumption to make. More than half of plugins we use are not available in Vue3, or the devs decided to re-write the entire plugin with massive breaking changes. It's not the same as re-writing our whole application, but close. This attitude towards breaking changes and big rewrites from the ecosystem were a clear indicator for us to leave it. I guess issues like these confirm that decision :( |
Vue3 is available for quite some time already. You cannot complain about it now like it is a rushed mandatory migration that was announced 3 months ago (like Apple would do). I understand the pain of struggling to rewrite some stuff especially since some packages saw a massive change moving towards a composition API approach indeed. But that could have been part of some RFCs veto or slow migration towards something else or an abstraction wrapper that keeps the internals in the same way. Realistically I do not see what kind of framework nowadays would not have those issues. Either you do things inside of your company to keep them the same way for a long time or you keep track and react accordingly. |
This solution actually worked for me. Node 18.19.0, yarn 4.1.0 (stable at the time of writing), for template react-ts. |
Had success migrating it from vue to vite. Had to make another folder for easy migration then copy the |
Hello guys! so Im experiencin the same problem right now, is there any long term solution apart from migrate to vue 3? and if we do, how much time took you to do so? Thanks in advance! |
@albertomenen I'm doing the same migration currently and i got the same problem and i find ZERO solution.. If you have any leads, let me know |
I got this exact issue while initiating fresh project using node 20.x |
Version
5.0.8
Environment info
Steps to reproduce
I intend to switch from Node.js version 16 to version 18. However, when I update my vue-cli package to either ~5.0.6 or ~5.0.8, I encounter the following error related to the @achrinza/node-ipc package, as illustrated below. To address this problem, I've implemented a workaround using the resolutions option in my package.json file, which seems to resolve the issue. Are there any alternative or more effective methods to resolve this problem?
"resolutions": {
"@achrinza/node-ipc": "10.1.9"
},
[2/4] Fetching packages...
error @achrinza/[email protected]: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.17.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
What is expected?
My build should work without any errors
What is actually happening?
It is giving me above mentioned issue
The text was updated successfully, but these errors were encountered: