You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a *.ts file which imports a *.tsx file.
The pasted GitHub Actions workflow is a self-contained reproducer and completes successfully.
But if I remove sed -i 's@"type": "module",@@' package.json, it starts erroring out
Error: Cannot find module '/home/runner/work/lexical-cli-render/lexical-cli-render/EmojiNode' imported from /home/runner/work/lexical-cli-render/lexical-cli-render/lexical-cli-render-tsx.ts
Did you mean to import "./EmojiNode.tsx"?
If I change import { EmojiNode } from './EmojiNode' to import { EmojiNode } from './EmojiNode.tsx', the error becomes:
(node:1637) ExperimentalWarning: Type Stripping is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
TypeError: Unknown file extension ".tsx" for /home/runner/work/lexical-cli-render/lexical-cli-render/EmojiNode.tsx
I've got a
*.ts
file which imports a*.tsx
file.The pasted GitHub Actions workflow is a self-contained reproducer and completes successfully.
But if I remove
sed -i 's@"type": "module",@@' package.json
, it starts erroring outIf I change
import { EmojiNode } from './EmojiNode'
toimport { EmojiNode } from './EmojiNode.tsx'
, the error becomes:The text was updated successfully, but these errors were encountered: