hiropppp / corporate-website-microcms

corporate-website-microcms.vercel.app
0 stars 0 forks source link

トップページのカルーセル #4

Open hiropppp opened 2 years ago

hiropppp commented 2 years ago

Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. at resolveDispatcher (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-material-ui-carousel\node_modules\react\cjs\react.development.js:1476:13) at useState (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-material-ui-carousel\node_modules\react\cjs\react.development.js:1507:20) at Carousel (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-material-ui-carousel\dist\components\Carousel.js:40:35) at renderWithHooks (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5471:16) at renderIndeterminateComponent (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5544:15) at renderElement (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5759:7) at renderNodeDestructive (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5898:11) at renderIndeterminateComponent (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5598:7) at renderElement (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5759:7) at renderNodeDestructive (C:\Users\001088-hr_yoshida\Desktop\work\02_private\05_corporate_website\corporate-website-microcms\node_modules\react-dom\cjs\react-dom-server.browser.development.js:5898:11) wait - compiling /_error (client and server)... wait - compiling... event - compiled client and server successfully in 435 ms (1520 modules) error - Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
  4. You might have mismatching versions of React and the renderer (such as React DOM)
  5. You might be breaking the Rules of Hooks
  6. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
hiropppp commented 2 years ago

これも? image

Could not find a declaration file for module 'react-items-carousel'. 'C:/Users/001088-hr_yoshida/Desktop/work/02_private/05_corporate_website/corporate-website-microcms/node_modules/react-items-carousel/dist/react-items-carousel.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-items-carousel if it exists or add a new declaration (.d.ts) file containing declare module 'react-items-carousel';