-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to import Javascript files from TSX #5900
Comments
@actual-size thanks for opening the issue; definitely a bug introduced in #5029 |
@actual-size I just tried testing this problem but I'm unable to repeat the problem. Can you provide reproduction that causes this error? |
@bartlomieju Just tried the following steps:
|
|
@actual-size can you try with Deno v1.0.2? I fixed some problems related to TSX between 1.0.1 and 1.0.2 |
Sorry, still happening with v1.0.2 |
I have similar issue: |
@actual-size thanks, now I can confirm that it's broken. However I tried it with changes from #5817 and it works fine. |
Great to hear, thanks for your help! |
Minimal reproducible example is:
Regardless of whether or not foo.js exists, this yields
error: TS2307 [ERROR]: Cannot find module './foo.js' or its corresponding type declarations.
Behaviour exists when trying to import either
.js
or.jsx
from.tsx
and not from any other permutation.Is this simply a bad error message covering up a case where it expects me to specify a type file?
The text was updated successfully, but these errors were encountered: