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