-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.4.0 - ReferenceError: Name is required #252
Comments
@IonKiwi please provide more details:
|
attached the lock file that was used |
@IonKiwi could you help understand the serup a bit more? Maybe setup a repository with that package-lock and as minimal content as required, to reproduce the issue? |
Also attached the package.json file. Steps to reproduce: with 3.3.1 that results in the sbom file, with 3.4.0 it results in the above error |
reproduced the error. found the issue: the root component does not have a name - and is therefore invalid. the package might be a private one, and have no name for that reason. also other required fields might be missing. intended solution:
additional tasks:
|
thanks for the report @IonKiwi . I am working on a fix. |
fix #252 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
fix #252 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
fix #252 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
fix #252 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
fix #252 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
fix #252 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
fix was implemented. #253 |
fix #252 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@IonKiwi a fix was released via 3.4.1 |
Great! can confirm that it's fixed |
Upgraded from 3.3.1 to 3.4.0.
Running 3.4 results in the following error:
C:\Tools\node\node_modules@cyclonedx\bom\model\CycloneDXObject.js:35
if (required) { throw new ReferenceError(name + ' is required') }
^
ReferenceError: Name is required
at Component.validateType (C:\Tools\node\node_modules@cyclonedx\bom\model\CycloneDXObject.js:35:29)
at Component.set name [as name] (C:\Tools\node\node_modules@cyclonedx\bom\model\Component.js:276:23)
at new Component (C:\Tools\node\node_modules@cyclonedx\bom\model\Component.js:98:17)
at Bom.createMetadata (C:\Tools\node\node_modules@cyclonedx\bom\model\Bom.js:48:26)
at new Bom (C:\Tools\node\node_modules@cyclonedx\bom\model\Bom.js:39:29)
at C:\Tools\node\node_modules@cyclonedx\bom\index.js:33:15
at C:\Tools\node\node_modules\read-installed\read-installed.js:142:5
at C:\Tools\node\node_modules\read-installed\read-installed.js:263:14
at cb (C:\Tools\node\node_modules\slide\lib\async-map.js:47:24)
at C:\Tools\node\node_modules\read-installed\read-installed.js:263:14
OS: Windows Server 2019
NodeJS: 16.5.0
Command: cyclonedx-bom -o bom.js
The text was updated successfully, but these errors were encountered: