dry-scarletD
Refine3y ago
14 replies
dry-scarlet

Differences between code generated using create-refine-app through yarn vs through npm

Hey all, just started learning about Refine today and went to start the tutorial using the headless version. I initially generated the Refine project using yarn as package manager. The project was created successfully, but when I went to go look at the generated App.tsx I saw that it was poorly formatted with lots of whitespace and unused imports. I tried installing Refine through npm instead and the code generated looked much better. Please see the attached screenshot - the yarn version is on the left and the npm version is on the right.

Is the yarn installer working with an older version of the boilerplate? What accounts for the difference?
yarn-vs-npm.png
Was this page helpful?