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

Missing media module '*.mov' #15183

Closed
1 of 4 tasks
jorge-ui opened this issue Nov 29, 2023 · 0 comments · Fixed by #15189
Closed
1 of 4 tasks

Missing media module '*.mov' #15183

jorge-ui opened this issue Nov 29, 2023 · 0 comments · Fixed by #15189
Labels
documentation Improvements or additions to documentation

Comments

@jorge-ui
Copy link
Contributor

jorge-ui commented Nov 29, 2023

Documentation is

  • Missing
  • Confusing
  • Outdated
  • Not sure?

Explain in Detail

Importing *.mov assets into my vite project throws a TS error module not found.

I was able to fix this via TS module augmentation (simply adding declare module '*.mov' {...} to app.d.ts)

vite/packages/vite/client.d.ts

Thank you guys for the awesome work! I ❤️ Vite+Svelte

Your Suggestion for Changes

declare module '*.mov' {
  const src: string
  export default src
}

Reproduction

No response

Steps to reproduce

No response

@jorge-ui jorge-ui added the documentation Improvements or additions to documentation label Nov 29, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant