-
Notifications
You must be signed in to change notification settings - Fork 243
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
TypeScript paths is ignored #121
Comments
I agree about this particular shorthand pattern ie. About parsing |
It's true that |
It looks like there is an underlying parcel bug too. I guess I will have to patch that and see if that works. I will try to get this fix up this weekend. |
@TimMensch can you try the installing the latest version. #122 fixes the root imports using ‘~’ |
Thanks for the fast fix! Seems to work great. Closing. I was testing The current project is more important to finish than to use the perfect platform. I'll absolutely consider Thanks again! |
I understand. AMP can be looked into in the future and should be easy to add. Thanks! |
In my tsconfig I use the following pattern:
This means I can specify imports as follows:
This pattern eliminates the annoying
"../.../components/Layout"
style relative paths that need to be divined based on what folder you're currently in, or adjusted as you move files or copy code around. VS Code also supports this for auto-imports. It's relatively standard, and is also supported byparcel
.Zero, unfortunately, sees
"~components"
as a package and tries (and fails) to import it. A simple fix would be to grab thepaths
entry fromtsconfig.json
and ignore any imports that match any of the path globs.The text was updated successfully, but these errors were encountered: