question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[2.1.0] no such file or directory, lstat '/var/folders/xxxxx/T/carbon-multi-page@2.1.0/build'

See original GitHub issue

After upgrading to 2.1.0 it throws this error:

✔ Determine tmp directories [0.0s]
✔ Select Package Manager [0.1s]
  › Selected pnpm
↓ Template already unzipped. [SKIPPED]
↓ Template already unzipped [SKIPPED]
✔ Install dependencies [0.6s]
✔ Resolving template configuration [0.0s]
  › Found 7 supported keys
    Target schema location: ./src/_schema.json
✔ Load GraphQL Schema [0.7s]
✔ Write variables file [0.0s]
✔ Build template [1s]
✖ Move output

------- Stacktrace -------
[Error: ENOENT: no such file or directory, lstat '/var/folders/yz/dk5dbx8n2hqcfk1kdktxmknh0000gn/T/carbon-multi-page@2.1.0/build'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'lstat',
  path: '/var/folders/yz/dk5dbx8n2hqcfk1kdktxmknh0000gn/T/carbon-multi-page@2.1.0/build'
}

I’m using node 14.9, latest pnpm and lib version 2.1.0.

It seems that Build Template step took 1s to finish while on v2.0.0 it took like a minute to finish.

edit: I totally removed the website.options.queryGenerationFactories, runned magidoc generate and it didn’t throw an error about missing scalars, it went directly to the error described above since the scalars check is happening during Build template step.

edit 2: I’ve manually created the build folder, runned magidoc generate, (the process was unexpectedly really fast), runned magidoc preview, visited localhost:4000 and the page was blank (as expected since the Build template step took only 1 sec to finish).

edit 3: don’t know if it matters but my global packages are installed in $HOME/.npm-global folder instead of npm default one so I won’t have to use sudo while installing global packages.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20

github_iconTop GitHub Comments

1reaction
akkikumar72commented, Sep 12, 2022

2.13.1 version works perfect with vercel. Really appreciate your help and merging this fix.

1reaction
pelletier197commented, Sep 12, 2022

Thank you a lot for the repro project. I managed to reproduce the issue and figure out what was the problem. Apparently, Svelte-kit seem to do something special when it detects it’s deployed on vercel, and it automatically outputs build files somewhere else than what is specified in the configuration… very weird and not very well documented feature.

I already opened and merged a bugfix for that (2.13.1), so thank you.

For the record, I managed to deploy your website here with a few tweaks

  • I needed to add a vercel.json file with the following content for URLs to be resolved.
{
    "cleanUrls": true
}

I will make sure to document that as part of the deployment documentation.

  • There was a typo in your index.html (anolist rather than anilist).

If you still face the issue with the latest version, feel free to re-open.

Read more comments on GitHub >

github_iconTop Results From Across the Web

no such file or directory, lstat '/Users/Desktop/node_modules ...
I had this problem, it was just: Works "styles": [ "node_modules/bootstrap/dist/css/bootstrap.min.css". Not works "styles": [ ".
Read more >
"No such file file or directory, lstat" for Yarn cache ... - GitHub
I'm running yarn to install packages for a personal project and during installation, I get the error: error An unexpected error occurred: " ......
Read more >
Error running Team City build step in Docker image: "ENOENT ...
Note the error "ENOENT: no such file or directory, lstat 'C:\ContainerMappedDirectories'". I've come across this post: ...
Read more >
TRV - Cannot lstat **** Errno = 2: No such file or directory - VOX
Solved: MasterI have faced such issue Backup Standard that spends hours and after incident : Info bpbrm (pid=5880) from client XXX: TRV -...
Read more >
Does stat/lstat on nonexistent file cause a disk seek?
Somehow the OS needs the information, wether the file is there or not. Obviously it has to read in the folder list of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found