Skip to content

Alias not working with fonts? #438

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

Closed
ko22009 opened this issue Feb 21, 2023 · 1 comment
Closed

Alias not working with fonts? #438

ko22009 opened this issue Feb 21, 2023 · 1 comment
Labels
kind: support Asking for support with something or a specific use case problem: removed issue template OP removed the issue template without good cause problem: stale Issue has not been responded to in some time solution: duplicate This issue or pull request already exists solution: out-of-scope This is out of scope for this project solution: tsc behavior This is tsc's behavior as well, so this is not a bug with this plugin

Comments

@ko22009
Copy link

ko22009 commented Feb 21, 2023

import bold from 'assets/fonts/OpenSans/OpenSans-Bold.woff2';

alias assets doesn't work.

@agilgur5 agilgur5 added problem: removed issue template OP removed the issue template without good cause kind: support Asking for support with something or a specific use case solution: out-of-scope This is out of scope for this project labels Feb 21, 2023
@agilgur5 agilgur5 added the solution: tsc behavior This is tsc's behavior as well, so this is not a bug with this plugin label Mar 14, 2023
@agilgur5
Copy link
Collaborator

entirely removed issue template...

Please don't remove the issue template, it's there for a reason.

Please do be respectful to maintainers, the vast majority of which are unpaid volunteers.
To be explicit, a one line issue that removes the entire issue template is not respectful.

aliases

alias assets doesn't work.

"Aliases" are not truly supported by TypeScript itself, please see #201 for significant details about this.

fonts

This plugin doesn't work with non ts files

It is a TS plugin, it's only meant to handle TS files. tsc itself does not handle non-TS files.

If you're trying to import a font into your library, you need a separate plugin for that. TS also needs declarations for that, as it does for all non-TS asset files, see also #160

@agilgur5 agilgur5 added the solution: duplicate This issue or pull request already exists label Mar 14, 2023
@agilgur5 agilgur5 changed the title This plugin doesn't work with non ts files Alias not working with fonts? Mar 14, 2023
Repository owner locked and limited conversation to collaborators Jun 30, 2023
@agilgur5 agilgur5 added the problem: stale Issue has not been responded to in some time label Jun 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind: support Asking for support with something or a specific use case problem: removed issue template OP removed the issue template without good cause problem: stale Issue has not been responded to in some time solution: duplicate This issue or pull request already exists solution: out-of-scope This is out of scope for this project solution: tsc behavior This is tsc's behavior as well, so this is not a bug with this plugin
Projects
None yet
Development

No branches or pull requests

2 participants