Skip to content

Analyzer ignores all inherited fields when a single component imports a ".json" file. #328

@veith

Description

@veith

Whe any third party file imports a .json file, thirdPartyCEMs is empty.

What happens:

  • find-dependencies.js calls rsModuleLexer.parseAsync with json as fileData.
  • rsModuleLexer throws then a GenericFailure error, which is not catched by find-dependencies.js
  • cli.js catches the error in line 78 and logs Failed to add third party CEMs. ... , but the stack of the error is kind of useless and contains only the json file contents

Expected behavior:
Do not scan json files for dependencies, because it can not have a dependency.

Suggested fix:

skip the dependency scan for json files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions