简体   繁体   中英

I cant figure out how to fix this reactjs error

I just pulled a our main branch and my other dev is across the world and cant figure out how to deal with this. When I usually have these errors with eslint I "npx prettier --write" it but this isnt the case here. Any ideas help. This is what it shoots back below.

" Error: Command failed with exit code 1: node_modules/.bin/next build warn - The target config is deprecated and will be removed in a future version. See more info here https://nextjs.org/docs/messages/deprecated-target-config

Failed to compile.

./components/sections/HowItWorks.tsx 39:62 Error: ' can be escaped with ' , ‘ , ' , ’ . react/no-unescaped-entities

info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules info - Loaded env from /Users/* / /landing-page/.env.local info - Checking validity of types...

error Command failed with exit code 1."

Please let me know if you have a fix.

Build errors are frequently caused by errors in your code like this./components/sections/HowItWorks.tsx 39:62 Error: ' can be escaped with ', ', ', '. react/no-unescaped-entities

try to use template strings `` if your text has ' or ", before push to remote repo try to run build and check errors locally

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM