How can I get rid of my “@types/react/index” can only be default-imported using ‘esModuleInterp’ flag lint in React/TypeScript

What worked for me was adding the following in my tsconfig.json file in the compilerOptions:

"allowSyntheticDefaultImports": true,
"esModuleInterop": true

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)