So I’ve been trying to use the @vtex/shoreline package on an admin app. After installing the package in /react, I can’t get the app to link properly, since I receive the following error message: "@vtex/shoreline@1.11.24: The engine “node” is incompatible with this module. Expected version “>=20”. Got “16.20.2"”
Well, this is strange because the node version I am currently using is 21.6.2.
I’ve already tried to delete node_modules and yarn.lock only to reinstall everything again. None of that worked, unfortunately.
I’ve noticed, though, that 16.20.2 is one of the node versions I have installed in my nvm, but I even tried uninstalling it and the error persists. Switching between node versions using nvm doesn’t change the outcome no matter what I do. Am I even supposed to use this lib? What can I do to solve this issue?
2 Likes
It’s not related to your environment, afaik.
It’s a damn issue with app builder in VTEX. They use node 20 (node builder 7.x) to build and compile the apps, BUT, they still use node@4.x (which is 16.20.2) to install dependencies.
It is a mess!
You can only use “resolutions” in package.json to pin a dependency to a version that works with 16.20 ![]()