epicweb-dev / full-stack-foundations

Learn the foundational skills of building full stack web applications.
https://epicweb.dev/workshops/full-stack-foundations
Other
599 stars 157 forks source link

Error when typing "npm start" for the first time #28

Closed chaiwat-pand closed 1 year ago

chaiwat-pand commented 1 year ago

Unfortunately I am unable to run the local app on my computer. After typing "npm start" in the terminal, I get a bunch of errors.

Error message: TypeError: Cannot read properties of undefined (reading 'toLowerCase') at userAgentContains (file:///Users/chaiwatpandey/Desktop/full-stack-foundations/node_modules/@kentcdodds/workshop-app/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs:1470:25) at file:///Users/chaiwatpandey/Desktop/full-stack-foundations/node_modules/@kentcdodds/workshop-app/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs:1476:20 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) at async file:///Users/chaiwatpandey/Desktop/full-stack-foundations/node_modules/@kentcdodds/workshop-app/start.js:31:2 Encountered error running the server, exiting...

Image:

image
kei95 commented 1 year ago

For whoever having the same problem, that's likely because your node js version is 21.0.0. Bump up to the latest version should resolve it.

reference: https://www.framer.community/c/bugs/node-21-typeerror-cannot-read-properties-of-undefined-reading-tolowercase

chaiwat-pand commented 1 year ago

I am currently using Node.js version 19.0.0 and it works fine too.