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.

[Error: ENOENT: no such file or directory, rename `some` to `some`

See original GitHub issue

Describe the bug

run yarn build It gives the error:

info  - Generating static pages (54/54)

> Build error occurred
[Error: ENOENT: no such file or directory, rename '/Users/mikhailkiselyov/WebstormProjects/tajwork/.next/export/ru/index/index/Footer.html' -> '/Users/mikhailkiselyov/WebstormProjects/tajwork/.next/server/pages/ru/index/index/index/Footer.html'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'rename',
  path: '/Users/mikhailkiselyov/WebstormProjects/tajwork/.next/export/ru/index/index/Footer.html',
  dest: '/Users/mikhailkiselyov/WebstormProjects/tajwork/.next/server/pages/ru/index/index/index/Footer.html'
}
error Command failed with exit code 1.

Occurs in next-i18next version

^11.0.0

Steps to reproduce

  1. yarn build done

Expected behaviour

Correct build

Screenshots

Not required

OS (please complete the following information)

Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101
Binaries:
  Node: 14.17.5
  npm: 7.21.1
  Yarn: 1.22.11
  pnpm: N/A
Relevant packages:
  next: 12.1.7-canary.29
  react: 18.1.0
  react-dom: 18.1.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SSylvain1989commented, Oct 13, 2022

@fxck @GemN @ksielyov hello , did you find a solution about that ? Thanks

0reactions
fxckcommented, Aug 25, 2022

happens on build as well, can’t figure out why

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM: ENOENT: no such file or directory, rename
When I got this error I looked for all running instances of node in my task manager (i use process explorer ...
Read more >
How to fix: npm ERR! enoent ENOENT: no such file or ...
I recently struggled for a while with an npm error thrown when executing npm install of some package. The error message was npm...
Read more >
When 'npm install' > "ENOENT: no such file or directory ...
I fixed it by uninstalling node, npm and everything with it (and reinstalled everything afterwards of course). 1
Read more >
ENOENT: no such file or directory - Laracasts
Hey guys, Fresh laravel 5.6 installation on debian with Npm version 5.6.0 giviz@localhost:/mnt/hgfs/Code/project.test/gui$ npm install --no-bin-links npm ...
Read more >
Can't update npm to newest version on Ubuntu - Super User
Which installs npm version 3.5.2. Then I try to update it to newest version and it fails. Could not find a proper solution...
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