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.

No such file or directory "ui5-local.yaml"

See original GitHub issue

Easy-Ui5 version:

Run yo easy-ui5 --plugins to print all relevant version strings

Node.js: v18.2.0
yeoman-environment: 3.9.1
generator-easy-ui5: 3.4.0
home: /opt/homebrew/lib/node_modules/generator-easy-ui5
pluginsHome: /opt/homebrew/lib/node_modules/generator-easy-ui5/plugin-generators

Available generators:
  - generator-ui5-project: 0.1.1

OS/version:

MacOS 12.4

Browser/version (+device/version):

MacBook Pro M1 13"

Steps to reproduce the problem:

  1. Run “yo easy-ui5 project”
  2. Select “Create a new OpenUI5/SAPUI5 project”
  3. Select default name and namespace for the app.
  4. Select “static webserver” for the platform.
  5. Select “XML” as view type.
  6. Select CDN for OpenUI5
  7. Select “Yes” for creating new directory for the app.
  8. Select “Yes” for adding Javascript code assist libraries.

What is the expected result?

The project will be created.

What happens instead?

used @sap-ux/fiori-freestyle-writer to generate freestyle app skeleton :)
  ⚠ ️ patched @sap-ux's index.html with Content delivery network (OpenUI5)
  ⚠ ️ patched @sap-ux's flpSandbox.html to boostrap only SAPUI5 (sap.ushell!)
  ⚠ ️ patched @sap-ux's MainViewController.js to use ./BaseController
node:events:505
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, scandir '/Users/kennethsumang/Documents/www/sapui5/com.myorg.myUI5App/uimodule/ui5-local.yaml'
    at Object.readdirSync (node:fs:1420:3)
    at exports.readdir (/opt/homebrew/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/sync/fs.js:18:20)
    at Object.safeCall [as safe] (/opt/homebrew/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/call.js:24:8)
    at DirectoryReader.readNextDirectory (/opt/homebrew/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:78:10)
    at DirectoryReader.stream._read (/opt/homebrew/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:57:18)
    at Readable.read (node:internal/streams/readable:496:12)
    at readdirSync (/opt/homebrew/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/sync/index.js:27:21)
    at Function.readdirSyncStat (/opt/homebrew/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/@mrmlnc/readdir-enhanced/lib/index.js:34:10)
    at ReaderSync.dynamicApi (/opt/homebrew/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/fast-glob/out/providers/reader-sync.js:64:24)
    at ReaderSync.api (/opt/homebrew/lib/node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project/node_modules/fast-glob/out/providers/reader-sync.js:56:25)
Emitted 'error' event on Readable instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path: '/Users/kennethsumang/Documents/www/sapui5/com.myorg.myUI5App/uimodule/ui5-local.yaml'
}

Node.js v18.2.0

Any other information? (attach screenshot if possible)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
nicoschoenteichcommented, Jun 29, 2022

First observation: This is related to node 18. Node 16 works fine. Will do further investigation.

1reaction
jamess0160commented, Jun 27, 2022

I spotted this error today, and i was doing some testing and found that if you create the project with json view it works normal

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't test application - (ENOENT: no such file or directory)
Hi Experts. I am trying to test an application built in BAS. I have created a test application using the template for a...
Read more >
ui5 serve error message is misleading · Issue #50 - GitHub
open a console window · Navigate into a directory without ui5.yaml (e.g. root directory of openui5) · start the server with ui5 serve ......
Read more >
Error: ENOENT: no such file or directory, scandir
I got the error 'Error: ENOENT: no such file or directory, scandir '**/node_modules/node-sass/vendor', this solution helped me resolve it.
Read more >
sap/ux-ui5-tooling - npm.io
A newly created project does not contain a deployment configuration ( ui5-deploy.yaml ) but you can create it by executing npx fiori add...
Read more >
Folder Structure: Where to Put Your Files - SAPUI5 SDK
The root Folder. The root folder should contain files that are not part of your application coding. · The webapp Folder. The webapp...
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