miblanchard / react-native-slider

A pure JavaScript <Slider> component for react-native and react-native-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

theInfiTualEr opened this issue · comments

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'

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