I'm using this package in a React application set up with create-react-app.
When I import the slider with
import { ImgComparisonSlider } from "@img-comparison-slider/react";
It causes an error
Failed to parse source map from '/Users/roman/Documents/img-comparison-slider-test/node_modules/@img-comparison-slider/react/src/index.tsx' file: Error: ENOENT: no such file or directory, open '/Users/roman/Documents/img-comparison-slider-test/node_modules/@img-comparison-slider/react/src/index.tsx'
This doesn't really affect the application, but having the warning is annoying.
As a workaround, I can do something like this:
I'm using this package in a React application set up with
create-react-app
. When I import the slider withIt causes an error
This doesn't really affect the application, but having the warning is annoying. As a workaround, I can do something like this:
But I can't style the slider with
styled-components
oremotion
in this case. Unfortunately, disabling source maps is not an option.