-
-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Labels
Description
Reproduction link or steps
- Open this stackblitz link Stackblitz
- Run "pnpm run build"
- 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()
Esya