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

Import CSS: Error: Failed to find '~photoswipe/dist/photoswipe.css' #2094

Open
dangelion opened this issue Apr 5, 2024 · 0 comments
Open

Comments

@dangelion
Copy link

dangelion commented Apr 5, 2024

Hi, I can't import the stylesheet.
I'm using webpack and always imported styles for any libs like this, in my app.scss:

@import "~photoswipe/src/photoswipe.css";
or
@import "~photoswipe/dist/photoswipe.css";

but with Photoswipe I get this error:

webpack built bud 801c66c0711d860e2bba in 721ms
⠋ 98% emitting

 ERROR  ./resources/styles/app.scss

Error: Failed to find '~photoswipe/dist/photoswipe.css'
  in [
    ./resources/styles
  ]

JS is imported in app.js

import PhotoSwipeLightbox from "photoswipe/lightbox";

while I have to import styles from app.scss (not from JS)

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

1 participant