Skip to content

Path aliasing creates build error #461

@khabubuphathu

Description

@khabubuphathu

Reproduction link or steps

  1. Open this stackblitz link Stackblitz
  2. Run "pnpm run build"
  3. See the build output that contains an error

What is expected?

The project must successfully build with path aliasing

What is actually happening?

When building the project it throws an error ERROR Error: internal error: entered unreachable code: Should always rewrite to Identifier for JsxMemberExpression::get_identifier()

Any additional comments?

I just tried to migrate my Preact library that has the following path aliasing

{
  "include": ["src"],
  "compilerOptions": {
    // existing code
    "paths": {
      "react": ["./node_modules/preact/compat/"],
      "react/jsx-runtime": ["./node_modules/preact/jsx-runtime"],
      "react-dom": ["./node_modules/preact/compat/"],
      "react-dom/*": ["./node_modules/preact/compat/*"]
    },
  }
}

However when building the project it throws an error ERROR Error: internal error: entered unreachable code: Should always rewrite to Identifier for JsxMemberExpression::get_identifier()

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions