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

doesn't work with Typescript #5

Open
AntonPilyak opened this issue May 30, 2019 · 2 comments
Open

doesn't work with Typescript #5

AntonPilyak opened this issue May 30, 2019 · 2 comments

Comments

@AntonPilyak
Copy link

Works fine with plain JavaScript, but doesn't work with Typescript. Here is the repository for reproducing: https://github.com/AntonPilyak/rollup-image-bug

@PeterNMcArthur
Copy link

@AntonPilyak if you create a type declaration for png then this works as expected.

Simply create a type declaration file *.d.ts and add the following to it: declare module '*.png'. now when you run build it will resolve as expected.

@kriscoleman
Copy link

@AntonPilyak if you create a type declaration for png then this works as expected.

Simply create a type declaration file *.d.ts and add the following to it: declare module '*.png'. now when you run build it will resolve as expected.

I've done this, and still receive the error.

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

No branches or pull requests

3 participants