Skip to content

Custom JSX factory | Vite Vanilla - TypeScript project | import viteLogo from '/vite.svg' | .tsx: cannot find module #18635

Answered by coderbuzz
coderbuzz asked this question in Q&A
Discussion options

You must be logged in to vote

Argh just found what the caused!

It cannot have the sama file name: main.ts & main.tsx

rename main.tsx to other name solved the issue

Thank you for your thought @hi-ogawa 😊

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@coderbuzz
Comment options

@coderbuzz
Comment options

@coderbuzz
Comment options

Answer selected by coderbuzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants