This error is popping up when I run ‘netlify dev’
◈ Cannot read properties of undefined (reading ‘name’)
I do not know what is looking for name.
AppName: gaiagardens
Build Logs:
npm run build
gaiagardens@1.0.0 build
netlify dev
(node:34805) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
◈ Netlify Dev ◈
◈ Injecting environment variable values for all scopes
◈ Ignored general context env var: LANG (defined in process)
◈ Ignored site settings env var: EMAIL_ADDRESS (defined in .env file)
◈ Injected .env file env var: EMAIL_ADDRESS
◈ Ignored site settings env var: EMAIL_PASSWORD (defined in .env file)
◈ Injected .env file env var: EMAIL_PASSWORD
◈ Ignored site settings env var: PORT (defined in .env file)
◈ Injected .env file env var: PORT
◈ Ignored site settings env var: SMTP_HOST (defined in .env file)
◈ Injected .env file env var: SMTP_HOST
◈ Ignored site settings env var: SMTP_PORT (defined in .env file)
◈ Injected .env file env var: SMTP_PORT
◈ Cannot read properties of undefined (reading ‘name’)
Hi, @paulgasbarra. You cannot run netlify dev in the build system at Netlify. Well, technically you can but doing so isn’t supported in any way and won’t do anything useful.
Examining the repository for this site, it appears to depend on a Node.js application runtime. The only way to run Node.js code after the build at Netlify is via serverless functions:
However, the code in the GitHub repository for this site isn’t designed to use serverless functions and it is trying to use a Node.js server instead. Netlify doesn’t offer Node.js server hosting. That is Heroku style hosting and Netlify doesn’t provide this.
I’m having the same problem. (ntl v=17.25.0)
On this netlify project, I usually just run the ntl dev command to start the server. Without any changes to my code, I now get the error we’re talking about here, without the server.
C:\Users\me\Downloads\dev\si18n.js>ntl dev
◈ Netlify Dev ◈
◈ Injecting environment variable values for all scopes
◈ Ignored general context env var: LANG (defined in process)
◈ Cannot read properties of undefined (reading 'name')
C:\Users\me\Downloads\dev\si18n.js>
(Some other netlify projects work fine, and I have netlify-cli installed globally)