Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'length') #2

Open
ALee008 opened this issue Dec 12, 2022 · 1 comment
Open

Cannot read properties of undefined (reading 'length') #2

ALee008 opened this issue Dec 12, 2022 · 1 comment

Comments

@ALee008
Copy link

ALee008 commented Dec 12, 2022

Hello,
I just started learning Svelte and am trying to run your project. After npm install I am call npm run dev, but this is the error I'm receiving:

Cannot read properties of undefined (reading 'length') TypeError: Cannot read properties of undefined (reading 'length') at Proxy.each (/Users/xxx/WebstormProjects/MovieHub/node_modules/svelte/internal/index.js:1710:31) at index.svelte:44:9 at Object.$$render (/Users/xxx/WebstormProjects/MovieHub/node_modules/svelte/internal/index.js:1745:22) at Object.default (root.svelte:43:47) at eval (/src/routes/__layout.svelte:37:94) at Object.$$render (/Users/xxx/WebstormProjects/MovieHub/node_modules/svelte/internal/index.js:1745:22) at root.svelte:37:45 at $$render (/Users/xxx/WebstormProjects/MovieHub/node_modules/svelte/internal/index.js:1745:22) at Object.render (/Users/xxx/WebstormProjects/MovieHub/node_modules/svelte/internal/index.js:1753:26) at render_response (file:///Users/xxx/WebstormProjects/MovieHub/.svelte-kit/runtime/server/index.js:1198:28)

Any suggestions or ideas what I'm doing wrong?
npm version: 9.2.0
node version: 18.12.1
svelte-cli version: 3.0.0

Thank you.

@marksteven
Copy link

Getting similar error.
Instructions say
npm init svelte@next my-app
which gives you a skeleton project are you then supposed to git clone this repository into same folder or something else.
Like Alee I too am learning this and does not seem clear Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants