maxkostinevich / Chakra-UI-Admin-Dashboard-Template

Collection of custom made components using Chakra UI.
https://maxkostinevich.github.io/Chakra-UI-Admin-Dashboard-Template/
MIT License
74 stars 13 forks source link

theme.js error #4

Open byouloh opened 2 years ago

byouloh commented 2 years ago

When I run it by "npm start", but I got the following error message from the browser console:

Uncaught TypeError: b is not a function at eval (theme.js:6:422) at Array.forEach () at c (theme.js:6:402) at eval (theme.js:6:575) at Module../src/theme.js (main.js:2250:1) at webpack_require (main.js:4516:33) at fn (main.js:4727:21) at eval (App.js:8:64) at Module../src/App.js (main.js:1920:1) at webpack_require (main.js:4516:33)

byouloh commented 2 years ago

After I removed nodejs version 16.x and reinstalled version 14.x(14.8.x), this error never occurs. As I know "node-sass": "^6.0.1" and nodejs : 16.x compatible each other, this one is not from that, but from probably webpack version.

byouloh commented 2 years ago

After using "babel-loader" instead of "swc-loader" and returning "swc-loader", the same error comes. So, when I changed into "babel-loader" again, the problem disappeared. FYI.