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 "@splidejs/react-splide/css"; cannot be found #65

Open
2 tasks done
MisterMunchkin opened this issue Mar 7, 2023 · 1 comment
Open
2 tasks done

import "@splidejs/react-splide/css"; cannot be found #65

MisterMunchkin opened this issue Mar 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@MisterMunchkin
Copy link

Checks

Version

0.7.12

Description

I imported Splide, SplideSlide as well as the css like how the documentation stated:

import { Splide, SplideSlide } from "@splidejs/react-splide";
import "@splidejs/react-splide/css";

But it would give me this error when running.

Screenshot 2023-03-07 at 10 48 05 AM

I'm new to react so I don't know if this is relevant but I'm using craco.

Reproduction Link

No response

Steps to Reproduce

  1. yarn add @splidejs/react-splide
  2. import Splide, SplideSlide and "@splidejs/react-splide/css" to component
  3. add to jsx
  4. yarn run start (craco start)
  5. see module not found error on css import

Expected Behaviour

I expected it to build successfully and show me a nice carousel.

@MisterMunchkin MisterMunchkin added the bug Something isn't working label Mar 7, 2023
@ngechu
Copy link

ngechu commented Oct 5, 2023

I have done some digging in the node_modules and have found that the correct location is in '@splidejs/react-splide/dist/css' but it is still throwing an error, I assume that it is been used inside the node_modules and that's why the error is persisted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants