Stop Ejecting Create React App

preview_player
Показать описание
Instead of ejecting CRA (Create #React App) you can get access to many option by using Craco. In this lesson we show an example of using craco by setting up path aliases for #TypeScript 🌹

#basarat

Chapters
0:00 Intro
0:34 Example CRA limitation
1:12 Using paths with tsconfig
2:25 Modifying Webpack / Jest Config
3:57 Outro

👇 ❤️ Subscribe for MOORE ❤️ 👇

**Feel Free To Read This Lot**

I'm Basarat, and I love helping developers. More about me:

Microsoft MVP for TypeScript
200K contributions on Stackoverflow. Top Contributor for TypeScript.
Book Author : Beginning NodeJS
Book Author : TypeScript Deep Dive
Creator of multiple hot ✨ed Github Open Source projects

Рекомендации по теме
Комментарии
Автор

I had just learn't about react eject and was so happy but clicked on this video just incase, I did not know about the updating problem afterward!!, nice tip on save exact as well! Thank You

firedforfighting
Автор

How can I do this with css modules when importing other stylesheets into my module.css file?

roaring-turtle
Автор

question, why the $1 in components$1
on the moduleNameMapper configuration ?

Ebizzill
Автор

Bro i did all these steps but i got a fat error saying Node problems, also something that they couldn't find the craco.config.js (although it's there on the root path of my project)

Do you guys know if I have to add any Additional content to this file?

I've tried to delete node-modules, restart my IDE, delete package-lock.json, restart my computer, and I'm still getting the same issue.

If someone could help with it, comment below, thank you

arcadan
Автор

Great video man! You earned a subscriber. Could you make a video on Setting up Airbnb ESLint/Prettier with TypeScript-React

gyenabubakar
Автор

This is perfect. I was just having a similar issue. CRA doesn't let me import modules from outside the src folder. Is there a way to enable this with craco?

avi
Автор

Deleting generated file... package.json
solution plzz....?

abdulwaheed
Автор

Thanks, it was pleasure to watch. Subscribed.

As of October 2022 I would rather recommend react-app-rewired which is way more popular that craco.

МихаилЧистяков-рб
Автор

So 20 additional steps to avoid relative paths?

cas
Автор

*59* vulnerabilities (16 *moderate*, 41 *high*, 2 *critical* )

TheJobCompany
Автор

No, just no. Ya'll have no idea how bad it truly gets because you probably have a counter react app or a Pokemon creature browser lol. 😢The standards of web developers have fallen so far... please go away.

rallokkcaz
Автор

Stop using these ingenuous frameworks and start learning JavaScript.

jackesdavid