deamme / deamme/ts-transform-inferno

Importing createVNode in tsx file

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
53
Forks
6
PR merge metrics
No merged PRs in 30d

Description

If you import createVNode, createFragment, createComponentVNode, createTextVNode, normalizeProps, etc. (not sure if this is the full list) in a tsx file, occurs an error.

For example, having createVNode imported in tsx file:
`Module parse failed: Identifier 'createVNode' has already been declared`

This probably happens because in updateSourceFile.ts imports for these functions are added without checking if they are already imported in the source file.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.