saas-template icon indicating copy to clipboard operation
saas-template copied to clipboard

Unhandled Runtime Error Error: Cannot find module '@chakra-ui/system'

Open jr1893 opened this issue 3 years ago • 4 comments

Running into an error;

Call Stack webpackMissingModule webpack-internal:///./node_modules/@chakra-ui/theme/dist/chakra-ui-theme.esm.js (15:50) eval webpack-internal:///./node_modules/@chakra-ui/theme/dist/chakra-ui-theme.esm.js (15:142) ./node_modules/@chakra-ui/theme/dist/chakra-ui-theme.esm.js

amongst other similar issues.

Is this common and is there an easy fix?

Thank you!

jr1893 avatar Sep 17 '22 13:09 jr1893

Did you install chakra?

https://chakra-ui.com/getting-started

CloudCodesStuff avatar Jan 05 '23 05:01 CloudCodesStuff

Did you install chakra?

https://chakra-ui.com/getting-started

Installing Chakra via npm i @chakra-ui/react @emotion/react @emotion/styled framer-motion gives the same error. Looks like Chakra v2 needs React v18 but this project is using v17? May be completely wrong, I'm still trying to debug what is going on.

oryan avatar Feb 06 '23 05:02 oryan

@oryan same issue here. Did you find a fix?

ghefraim avatar Jun 21 '24 18:06 ghefraim

Looks like the following works:

npm config set legacy-peer-deps true
npm i

ghefraim avatar Jun 21 '24 18:06 ghefraim