'I am not able to run yarn export command even I have updated my packages.json file - A next.js related question
PS C:\Users\sujee\Desktop\Next App\panda> yarn export
yarn run v1.22.18
$ next build && next export
info - Checking validity of types
Failed to compile.
./pages/about.js
8:9 Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities
./pages/blog.js
8:29 Error: React Hook "useState" is called in function "blog" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
./pages/blogpost/[slug].js
9:27 Error: React Hook "useState" is called in function "slug" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
./pages/index.js
45:16 Error: `'` can be escaped with `'`, `‘`, `'`, `’`. react/no-unescaped-entities
I have updated my packages.json file and also called functions like getStaticPaths()
and getStaticProps()
Please help me with this issue!
I am attaching pic of my packages.json file!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|