Introducing NextJS with TypeScript

Introducing NextJS with TypeScript

basarat

3 года назад

28,243 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@philbrk8750
@philbrk8750 - 26.06.2022 10:30

I'm not sure if this is only available currently, but the next JS cli command comes with the option "--typescript // --ts" that installs all the packages, so one has only use
" yarn create next-app --typescript " OR " yarn create next-app --ts "

Ответить
@hephzibahcanoy9790
@hephzibahcanoy9790 - 12.04.2022 12:33

When doing npm run dev on terminal it shows this problem "It looks like you're trying to use TypeScript but do not have the required package(s) installed.", I installed the said package using this npm install --save-dev @types/react which is they provided, however it repeats the problem and outputs the same problem and same package needs to be installed, seems like a loop. How to get pass through it? Thank you

Ответить
@DarkFlarePrince
@DarkFlarePrince - 12.03.2022 07:04

I don't understand how at the 3min mark in your video, you have your useEffect rerendering with an empty dependency array. It should only update the page once right? Cause it's only working for me when I delete the array. It's been a while so maybe I don't remember useEffect properly. I copied your example, letter by letter, and it doesn't work for me.

Ответить
@lardosian
@lardosian - 04.07.2021 22:21

Great tips Basarat, thank you!

Ответить
@renu3463
@renu3463 - 22.04.2021 12:34

More Next.TS stuff

Ответить
@pranavpatil5849
@pranavpatil5849 - 19.04.2021 15:36

do u know how to do env profiling in nextjs... like accessing different api host by setting different process.env.NODE_ENV in nextjs ? sit, uat n prod

Ответить
@tkdevlop
@tkdevlop - 19.04.2021 06:00

My typescript skill increased significantly since I started watching you keep doing what you do ♥️.

Ответить
@alfieqashwa5257
@alfieqashwa5257 - 19.04.2021 00:12

Please add more typescript nextjs

Ответить