Relative Content

Tag Archive for javascriptreactjscypressstyled-componentsyarnpkg

Cannot create styled components after running yarn upgrade

I have a React project running with React and React DOM version 18. I am also using Cypress for component testing and styled components for styles.
What I have been facing is that every time I run yarn upgrade it upgrades some dependencies in the lock file, I don’t see anything in the package.json either. Is that what yarn upgrade does? Why doesn’t it update the dependencies in package.json? Is it a good or bad practice to do?

Cannot create styled components after running yarn upgrade

I have a React project running with React and React DOM version 18. I am also using Cypress for component testing and styled components for styles.
What I have been facing is that every time I run yarn upgrade it upgrades some dependencies in the lock file, I don’t see anything in the package.json either. Is that what yarn upgrade does? Why doesn’t it update the dependencies in package.json? Is it a good or bad practice to do?