Skip to content

How to import images #1739

Answered by rsslldnphy
rsslldnphy asked this question in Q&A
Oct 21, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Sigh. Immediately after posting this discussion I figure out it's actually a Typescript issue. Fixed by creating src/global.d.ts:

declare module "*.jpg";
declare module "*.png";

and updating tsconfig.json to include:

 "include": ["src", "src/global.d.ts"]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rsslldnphy
Comment options

Answer selected by rsslldnphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant