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

svelte-kit dev doesn't work due to "no such file" error #2005

Closed
OliverHGray opened this issue Jul 24, 2021 · 1 comment
Closed

svelte-kit dev doesn't work due to "no such file" error #2005

OliverHGray opened this issue Jul 24, 2021 · 1 comment

Comments

@OliverHGray
Copy link

OliverHGray commented Jul 24, 2021

Describe the bug

The Skeleton Project produced by npm init doesn't appear to be able to run with npm run dev, it produces the following error: ENOENT: no such file or directory, open '**omitted**/test/.svelte-kit/dev/components/.svelte-kit/dev/components/layout.svelte'.

There are no problems with running the app when built, only the dev server appears to have issues.

Reproduction

npm init svelte@next test
Select Skeleton Project
Select Typescript: Yes
Select Linting: No
Select Prettier: No
cd test
npm run dev
Visit localhost:3000 in browser and the error message will be displayed

Logs

No response

System Info

System:
    OS: macOS 11.4
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 625.56 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.3 - ~/.nvm/versions/node/v14.17.3/bin/node
    npm: 7.20.0 - ~/.nvm/versions/node/v14.17.3/bin/npm
  Browsers:
    Firefox: 89.0.2
  npmPackages:
    @sveltejs/kit: next => 1.0.0-next.137 
    svelte: ^3.34.0 => 3.40.2

Severity

serious, but I can work around it

Additional Information

Note: I have other SvelteKit projects that run fine on this machine that I created months ago, but all new projects have this issue.

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