Closed IObert closed 1 year ago
I recall that Marius found a way to work around this. Anyways, to provide some information for anyone running into this kind of issue:
This is a known issue with projects that have many transitive npm dependencies. UI5 Tooling follows all dependencies
of a project, and their dependencies. Due to shortcomings of that implementation "out of memory" errors like the one reported here can occur. We will hopefully improve this handling soon.
Until then you have two options depending on your project:
dependencies
could be devDependencies
since those are ignored by default{
"name": "my-app",
"version": "1.0.0",
"dependencies": {
"some-non-ui5-dependency": "^1.0.0",
"some-ui5-dependency": "^1.0.0"
},
"ui5": {
"dependencies": [
"some-ui5-dependency"
]
}
}
Any direct dependencies which are not listed in that array will be ignored. This should resolve the reported issue with the dependency tree generation. This configuration is not documented and will become obsolete (ignored) once UI5 Tooling dependency handling has improved.
Surprised to see this issue is still open. This should be resolved with the v3 releases 🎉
Expected Behavior
The
ui5
commands (e.g.ui5 serve
) should work.Current Behavior
Terminal "stalls" for some minutes and eventually fails with an error
Steps to reproduce the issue
devDependencies
and turn them in normaldependencies
ui5 serve -o index.html
Context
ui5 --version
when using the CLI):1.0 - 1.2
v10.6.0
6.5.0
Mac Mojave 10.14.3
NA
NA
Affected components (if known)
Log Output / Stack Trace