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

See original GitHub issue

Describe the bug Admin panel shows white screen due to requested bundles are not exists I’ve got Error: ENOENT: no such file or directory for next:

/admin-bro/lib/frontend/assets/scripts/global-bundle.development.js
/admin-bro/lib/frontend/assets/scripts/app-bundle.development.js'

Installed libraries and their versions

Expected behavior Admin panel should load 😄

AdminBroOptions with schema

{
  rootPath: '/admin',
  resources: [
    {
      resource: SomeRes,
    },
  ],
}

Desktop (please complete the following information if relevant):

  • OS: MacOS
  • Browser Chrome
  • Version 89.0.4389.114

Additional context Another project with ABSOLUTELY same configuration of AdminBro works perfectly. Cleaning node_modules don’t resolve issue Cleaning cache don’t resolve issue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AlexeyVlasenkocommented, Apr 8, 2021

Do you use yarn or npm? I think this might be yarn/npm issue. I’ve just checked and those files are included in the package (they are pre-bundled) so whenever you install they should be included.

My other suggestions to try:

  1. Run yarn cache clean / npm cache clean --force
  2. Remove .yarncleanif it exists in your project
  3. Delete yarn.lock / package-lock.json
  4. rm -rf node_modules and yarn install --force (or npm equivalent)

Could you also share the output from when you run yarn/npm install or yarn add admin-bro?

Wow, looks like it was an issue with .yarnclean On my other project, there is no auto-clean option during install.

Removing .yarnclean and force reinstall modules helps! Thanks for great support!

0reactions
dzirafcommented, Apr 8, 2021

I’m not sure how yarnclean exactly works, but those two files aren’t imported anywhere in the codebase (they’re just prebundled for your own app to use) so they could’ve been considered unneeded

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve Nodejs: Error: ENOENT: no such file or ...
Your app is expecting to find a file at /home/embah/node/nodeapp/config/config.json but that file does not exist (which is what ENOENT ...
Read more >
How to fix: npm ERR! enoent ENOENT: no such file or ...
The error message was npm ERR! enoent ENOENT: no such file or directory, ... delete node-modules folder; run command npm cache clean --force ......
Read more >
ENOENT: no such file or directory · Issue #1171
After updating from 6.3.0 to 6.4.1 I've got errors. node:internal/process/promises:246 triggerUncaughtException(err, true /* fromPromise */) ...
Read more >
ENOENT No Such File or Directory Open - YouTube
In This Video We Will See How to Fix npm ERR Code ENOENT npm ERR syscall Open Error or ENOENT No Such File...
Read more >
How To Fix the “Enoent” Error?
No such files or directory means that the library is currently needed or the executable binary doesn't exist. Conclusion. Let's review what we...
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