The command is used to make a project with CRA.
You need to install packages using pnpm to change the package manager, then you don't need a yarn dependency file if you don't plan to use it.
Love to work with cutting edge technologies and on my journey to learn and teach. Having a can-do attitude and being industrious are the reasons why I question the status quo an venture in the unknown
I had a terrible time trying to get past that "toBeInTheDocument" error message in late 2023 only to realize I shouldn't be using create-react-app anyway.
Thank you so much!!!!
How can I change my shorter alias from "pnpm start" to "pn"?
The tutorial with Powershell for Windows in official pnpm website doesn't working...
I think they're supposed to add the type package or include it in @testing-library. because, when I set up cra with yarn claasicthere istesting-library__jest-dominnode_modules/@typesand it works well, I'm not sure tho.
From what I know, they don't officially supportpnpm`. I'll make an issue about it in github. After I get a response from them, I'll re-comment it to you
Love to work with cutting edge technologies and on my journey to learn and teach. Having a can-do attitude and being industrious are the reasons why I question the status quo an venture in the unknown
I did not face it in the dev env while running pnpm start but I faced it in github actions. IDK why but I am trying different solution. Maybe I'll update you later on
We're a place where coders share, stay up-to-date and grow their careers.
pnpm create react-app pnpm-cra --template typescriptis still installing packages with yarn. Isn't there a direct command?The command is used to make a project with
CRA.You need to install packages using
pnpmto change the package manager, then you don't need a yarn dependency file if you don't plan to use it.Very useful 💖
I'm glad it helped :)
Thanks for the heads up about CRA's death 😂. I used Vite.
I do Vite as well, Good choice man 👍
Warning: create-react-app is deprecated!
I had a terrible time trying to get past that "toBeInTheDocument" error message in late 2023 only to realize I shouldn't be using create-react-app anyway.
Yes, you're right.
Reactofficially don't recommendCRAanymore.Updated the post. Thanks for your comment.
Thank you so much!!!!
How can I change my shorter alias from "pnpm start" to "pn"?
The tutorial with Powershell for Windows in official pnpm website doesn't working...
I'm glad, it helped :)
pnpm.io/installation#using-a-short...
In Powershell, type this for registering an alias.
Then run a command
pn startHello!
How do you think, why
pnpmfails withoutpnpm add -D @types/testing-library__jest-dom?I think they're supposed to add the type package or include it in
@testing-library. because, when I set up cra with yarn claasicthere istesting-library__jest-dominnode_modules/@typesand it works well, I'm not sure tho.pnpm`. I'll make an issue about it in github. After I get a response from them, I'll re-comment it to youFrom what I know, they don't officially support
Any update?
I did not face it in the dev env while running
pnpm startbut I faced it in github actions. IDK why but I am trying different solution. Maybe I'll update you later on