-
Notifications
You must be signed in to change notification settings - Fork 70
v0.23.0+ doesn't resolve ts files included from js files #172
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
Comments
I am having the same issue. Surprisingly it seems to work when importing non-relative paths also seem to be broken (using In 0.22.1:When importing a typescript module from a .js file In 0.23.0+:When importing a typescript module from a .js file |
This is likely due to b0a0ecb |
@kyle-johnson could you actually post the file list? Since 0.23.0 plugin avoids resolving imports from files that are not found by typescript based on tsconfig settings. I'm curious if
|
Yes, it's in there:
|
Could you add |
@kyle-johnson could you try 0.24.3? might be fixed now. |
0.24.3 doesn't fix the issue for me. I have a simple project that last worked on 0.22.1
Results in the following error:
|
0.24.3 fixes it for my case |
@nickbabcock your stuff seem to compile if I change import to Looks like rpt2 doesn't resolve the import itself because source file is not even js and whatever ends up resolving import for rollup doesn't recognize ts files. |
Thanks for the insight, my svelte and rollup knowledge is fledgling -- the bundle turned out correct. 🎉 |
What happens and why it is wrong
The latest rpt2 (0.24.1) doesn't resolve ts files included from js files.
This works under rpt2 0.22.1 and earlier.
Versions
rollup.config.js
tsconfig.json
plugin output with verbosity 3
*Failing*
*Working*
The text was updated successfully, but these errors were encountered: