-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Version 1.10.1 breaks absolute paths in typescript #2068
Comments
Not sure what would cause this as TS hasn't changed for about half a year. It might be because we upgraded to TS 3? |
Not sure, as you see in my package.json, I'm also using typescript 3^ |
Did it work previous to 1.10? |
Yea the project is currently on 1.9.7 |
Same happens to me when switching from 1.9.7 to 1.10.1. Yet I have an "@" character prepended to the paths, hence I got a different error message: I'd assume that the bundler tries to install the missing dependency via yarn, instead of resolving it with the specified paths in the tsconfig.json file. |
I'm also getting the issue. It occurs even if auto install dependencies is turned off.
EDIT: No dice :( |
Hey @DeMoorJasper, any news on this issue? |
@ThomasK33 Not sure, TS asset handling hasn't changed in 1.10, so it's not really easy to pinpoint it. If anyone wants to dig into this, definitely feel free to do so. |
Maybe some problems happened between [email protected] and parcel-plugin-typescript ? |
@nnecec I think so too. |
I also think that could be a compatibility issue between
, could be broken. (also still looking for an optimal solution to use typescript mappings) |
cc. @fathyb any idea? |
Any update? |
fathyb/parcel-plugin-typescript#59 issue is freezed for long time. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
🐛 bug report
When updating to version 1.10.0 of parcel-bundler from 1.9.7, absolute paths in typescript are no longer working.
🎛 Configuration (.babelrc, package.json, cli command)
Directory structure
🤔 Expected Behavior
When running
parcel index.html
, it should resolve the absolute paths and run the app. Since mybaseUrl
is set tosrc
in tsconfig.json, then it should resolve the path assrc/config/firebase
😯 Current Behavior
Parcel displays an error in which it's unable to resolve the path.
register/src/index.tsx:5:7: Cannot resolve dependency 'config/firebase'
💁 Possible Solution
Not sure what changes occurred in the 1.10.0 release, but the app was working fine using 1.9.4.
Remove my absolute path and use a relative path.
🔦 Context
It affects me as i'm no longer able to build my app. Here's link to source code https://github.com/iRoachie/register
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: