If you use create-react-app a file named react-app-env.d.ts is created, that contains /// <reference types="react-scripts" />. I was completely redoing Eslint config that comes with create-react-app and while doing so, I have got an error saying:
Do not use a triple slash reference for react-scripts, use import style instead @typescript-eslint/triple-slash-reference
My question is, how do I replace /// <reference types="react-scripts" /> with import?
You can replace it with import 'react-scripts' to fix this error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With