Skip to content

BeyondJS Crashes on Import without Default Name or Destructure Instruction #22

Description

@jircdev

Steps to Reproduce:

  1. Import 'firebase/firestore' or any other module in a TypeScript file without specifying a default name or using a destructuring instruction.

Expected Behavior:
BeyondJS should handle imports without default names or destructuring instructions gracefully and provide a clear error message, rather than crashing.

Actual Behavior:
BeyondJS crashes with an error message when an import statement lacks a default name or destructuring instruction. The error message can be seen below:

TypeError: Cannot read properties of undefined (reading 'name')
    at C:\Users\jirc4\AppData\Roaming\npm\node_modules\beyond\lib\engine\bundles\processors\ts\processor\analyzer\interface\dependencies.js:44:35
    ... [rest of the error message]

Additional Information:

  • BeyondJS version: 1.2.0.beta.4

image

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