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 "." export in "svelte-media-queries" package #9

Closed
ksawery29 opened this issue Nov 22, 2022 · 4 comments
Closed

Missing "." export in "svelte-media-queries" package #9

ksawery29 opened this issue Nov 22, 2022 · 4 comments

Comments

@ksawery29
Copy link

Failed to resolve entry for package "svelte-media-queries". The package may have incorrect main/module/exports specified in its package.json: Missing "." export in "svelte-media-queries" package

@ryanspice
Copy link

@ksawery29 what was the solution?

@ksawery29
Copy link
Author

ksawery29 commented Dec 19, 2022

well i just didn't use the library it founds out i can do the same thing with css. but if you want to use it you can create library similar to this in just one file, here's repl (note that this isn't mine): url

@ryanspice

@ryanspice
Copy link

I managed to get it to work by doing;

import MediaQuery from 'svelte-media-queries/components/MediaQuery.svelte'

@fedorovvvv
Copy link
Owner

Hi
Yes, unfortunately this is a problem svelte >= 3.54.0

Thanks for the fix

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