miblanchard / react-native-slider

A pure JavaScript <Slider> component for react-native and react-native-web
MIT License
390 stars 67 forks source link

getting "Failed to parse source map" warning when using in web #415

Closed theInfiTualEr closed 8 months ago

theInfiTualEr commented 1 year ago

I'm using react-native-web with expo. When I try to run or build the app for web, while it does run and build and the slider works, I get this warning in terminal console:

web compiled with 2 warnings
WARNING in ./node_modules/@miblanchard/react-native-slider/lib/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'PROJECT/node_modules/@miblanchard/react-native-slider/src/index.tsx' file: Error: ENOENT: no such file or directory, open 'PROJECT/node_modules/@miblanchard/react-native-slider/src/index.tsx'

WARNING in ./node_modules/@miblanchard/react-native-slider/lib/styles.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'PROJECT/node_modules/@miblanchard/react-native-slider/src/styles.ts' file: Error: ENOENT: no such file or directory, open 'PROJECT/node_modules/@miblanchard/react-native-slider/src/styles.ts'
Stivi7 commented 10 months ago

In app.json add "web": { "bundler": "metro" }