Skip to content

Cannot use JSX unless the '--jsx' flag is provided #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
taiga-programming opened this issue Dec 6, 2020 · 1 comment
Closed

Cannot use JSX unless the '--jsx' flag is provided #1

taiga-programming opened this issue Dec 6, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@taiga-programming
Copy link
Owner

taiga-programming commented Dec 6, 2020

I did

  • I did install eslint base on following the page and added some eslint plugin, prettier to my package.json by using a yarn

1.install

yarn add -D easlint exc...

https://www.robertcooper.me/using-eslint-and-prettier-in-a-typescript-project

  1. npm run start , yarn start

  2. Title error

Vscode terminal

yarn start
yarn run v1.22.4
$ react-scripts start
The following changes are being made to your tsconfig.json file:
  - compilerOptions.jsx must be react-jsx (to support the new JSX transform in React 17)

i 「wds」: Project is running at http://192.168.56.1/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\Users\taiga\Github\Typescript\typescript-admin\admin\public
i 「wds」: 404s will fallback to /
Starting the development server...
Failed to compile.

My goal

  • Using a eslint and prettier in this project ..

package.json

"lint": "eslint \"./src/**/*.tsx*\"",
"prettier:check": "prettier --check \"./src/**/*.{tsx,jsx,json}*\"",
"prettier:write": "prettier --write  \"./src/**/*.{tsx,jsx,json}*\"",

My question

@taiga-programming
Copy link
Owner Author

solution

check

@taiga-programming taiga-programming added the bug Something isn't working label Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant