No such file or directory "ui5-local.yaml"
See original GitHub issueEasy-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:
- Run “yo easy-ui5 project”
- Select “Create a new OpenUI5/SAPUI5 project”
- Select default name and namespace for the app.
- Select “static webserver” for the platform.
- Select “XML” as view type.
- Select CDN for OpenUI5
- Select “Yes” for creating new directory for the app.
- 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:
- Created a year ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
First observation: This is related to node 18. Node 16 works fine. Will do further investigation.
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