Skip to content

Error ts(2307) while importing a PNG image with "url:..." #5194

Answered by mischnic
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe adding something like this to your project makes TS happy?

declare module 'url:*' {
  export default string;
}

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@mischnic
Comment options

@ghost
Comment options

@KokoDoko
Comment options

@bergwerf
Comment options

@kim3er
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants