Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 BUG: @astrojs/check breaks import from specific file #778

Closed
lodmfjord opened this issue Feb 8, 2024 · 5 comments
Closed

馃悰 BUG: @astrojs/check breaks import from specific file #778

lodmfjord opened this issue Feb 8, 2024 · 5 comments

Comments

@lodmfjord
Copy link

Describe the Bug

A path like this:
"@layouts/": ["./src/layouts/"],

is not recognized

Steps to Reproduce

Clone this repo and checkout this PR:
https://github.com/lodmfjord/binday/pull/24

@Princesseuh
Copy link
Member

This should be fixed in the latest version of the extension.

@CodeVxDev
Copy link

Not fixed. Still, the issue persists with Astro vs code extension's latest version, v2.7.3. Downgrading to 2.6.3 works.
tsconfig:

"paths": {
      "@/components/*": ["src/components/*.astro"]
 }

@Princesseuh
Copy link
Member

Arf, unfortunate. It seems like the fix worked for the exports use case, but it seems like there's still a problem with aliases in certain contexts.

@Princesseuh
Copy link
Member

"paths": {
      "@/components/*": ["src/components/*.astro"]
 }

This example actually works just fine for me:
image

Is there more details you can share?

@CodeVxDev
Copy link

It works for me, too, after upgrading to version 2.7.4. Version 2.7.0, 2.7.1 and 2.7.3 have some problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants