vtex-apps / store-discussion

VTEX IO store builders' community
80 stars 5 forks source link

Node version error when linking worspace #692

Closed igorpoubel closed 2 years ago

igorpoubel commented 2 years ago

Describe the bug Suddenly, after everything link well, the link started to show this error. Saying that the node engine is incompatible with react-hook-form module. This is the secound time this happens. The first time we rebuilt everything guessing it was soma other package interfearing. But I think it's better if this get resolved. To never happens again, or at least we know what to do.

To Reproduce I don't know how to reproduces. Because it happens without precedent.

Expected behavior Link the project without errors.

Screenshots image Error

image vtex --version and node verssion

Desktop environment (please complete the following information, if applicable):

image

Additional context I don't think it's this package (react-hook-form), becausa it is used at least almost a year without erros besides that one I told.

leandropfs commented 2 years ago

Same here

nicholasessacct commented 2 years ago

@igorpoubel @leandropfs Where I work, the team solve the problem installing exactly the version 6.9.4

igorpoubel commented 2 years ago

@nicholasessacct I forgot to report here. I did that some days ago and solved my "problem". Talking to some people from Vtex, they said that vtex.builder-hub has 12.16.1 node version. And, on React-Hook-Form, the node version required is 12.22. That's the reasons of this error. So, looking at RHF repository on GitHub, I found the version that node requirements is lower than, and leave RHF in the exactly version.

@leandropfs try to do that. Probably will solve your problem too.