Full width home advertisement

Confira

Post Page Advertisement [Top]

"/>
Programming

Developement - Solved Type error: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`.

Yoo Minna! Hi Minna! Estava codando e me deparei com esse erro enquanto fazia o deploy da applicacao na platform.sh
Para resolver esse problema rodei o seguinte comando no meu terminal bash
I was coding and just got in contact with this error while deploying my app to platform.sh
To solve this error I run the following command on my bash terminal:
yarn add jquery @types/jquery
Agora dentro do arquivo tsconfig.json adicione:
Now, inside the tsconfig.json file add:
{ "compilerOptions": { ... "types": ["jquery"] }, "typeRoots": ["/node_modules/@types"] } }
I hope it can be a good help for you too!

Nenhum comentário:

Postar um comentário

Bottom Ad [Post Page]

"/>
| Designed by Colorlib