muxinc / player.style

A fresh collection of media player themes for every use case!
https://player.style
MIT License
105 stars 4 forks source link

TypeScript error on theme import "Cannot find module..." #92

Open AdamJaggard opened 1 month ago

AdamJaggard commented 1 month ago

Because player.style doesn't currently export CommonJS modules, when importing player.style themes into a project using TypeScript, you might get an error that looks like this:

Cannot find module 'player.style/microvideo' or its corresponding type declarations.

The "fix" for this currently is to make sure that:

This might not work for all setups / bundlers / frameworks, etc. Alternatively, you may need to:

norbusonam commented 2 days ago

+1

p-a commented 2 days ago

+1