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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support also css files for use with import attributes #56507

Closed
jogibear9988 opened this issue Nov 22, 2023 · 6 comments
Closed

Support also css files for use with import attributes #56507

jogibear9988 opened this issue Nov 22, 2023 · 6 comments
Labels
Duplicate An existing issue was already created

Comments

@jogibear9988
Copy link

πŸ”Ž Search Terms

import, css

πŸ•— Version & Regression Information

  • This is errors

⏯ Playground Link

No response

πŸ’» Code

import wunderbaumStyle from 'wunderbaum/dist/wunderbaum.css' with { type: 'css' };

πŸ™ Actual behavior

reports an error cause of not finding the css file

πŸ™‚ Expected behavior

should find the css file

Additional information about the issue

whatwg/html#4898

@jakebailey
Copy link
Member

Duplicate of #46135

@jakebailey jakebailey marked this as a duplicate of #46135 Nov 22, 2023
@andrewbranch andrewbranch added the Duplicate An existing issue was already created label Nov 22, 2023
@jogibear9988
Copy link
Author

don't know if it is exactly the same. The other issue is about the type of the import, mine especially that the import errors with file not found if it is a css file

@jakebailey
Copy link
Member

We treat that import as an import of JS code, so it's going to fail without an ambient declaration or a path/to/style.d.css.ts file next to path/to/style.css.

@jogibear9988
Copy link
Author

So is this planed to be fixed, or need there be a .d.css.ts file for each stylesheet?

@jakebailey
Copy link
Member

See the other thread, which is about supporting methods to allow resolution with an import attribute of type css.

@typescript-bot
Copy link
Collaborator

This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes.

@typescript-bot typescript-bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants