coinjar / react-native-wagmi-charts

A sweet & simple chart library for React Native that will make us feel like We're All Gonna Make It.
MIT License
588 stars 116 forks source link

Static Rendering Error: Metro has encountered an error: While trying to resolve module `normalize-svg-path` from file #155

Open katche70 opened 1 year ago

katche70 commented 1 year ago

I can't get the library to run, unfortunately.

ich getting following error: Static Rendering Error (Node.js) Metro has encountered an error: While trying to resolve module normalize-svg-path from file node_modules\react-native-redash\lib\module\Paths.js, the package \node_modules\normalize-svg-path\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (\node_modules\normalize-svg-path\index.mjs. Indeed, none of these files exist:

I tried this https://github.com/gorhom/react-native-bottom-sheet/issues/1020

after that im getting this error: Metro has encountered an error: While trying to resolve module normalize-svg-path from file \node_modules\react-native-redash\lib\module\Paths.js,

Does anyone have a tip for this?

Here is my current package.json { "name": "appreact", "main": "expo-router/entry", "version": "1.0.0", "scripts": { "start": "expo start", "android": "expo run:android", "ios": "expo run:ios", "web": "expo start --web", "test": "jest --watchAll" }, "jest": { "preset": "jest-expo" }, "dependencies": { "@expo/vector-icons": "^13.0.0", "@microsoft/signalr": "^7.0.9", "@react-native-community/cli": "^11.3.6", "@react-navigation/native": "^6.1.7", "@react-navigation/native-stack": "^6.9.13", "@rneui/base": "^4.0.0-rc.7", "@rneui/themed": "^4.0.0-rc.8", "axios": "^1.4.0", "date-fns": "^2.30.0", "easy-peasy": "^6.0.2", "expo": "~49.0.5", "expo-blur": "^12.4.1", "expo-font": "~11.4.0", "expo-linking": "~5.0.2", "expo-router": "2.0.0", "expo-splash-screen": "~0.20.4", "expo-status-bar": "~1.6.0", "expo-system-ui": "~2.4.0", "expo-web-browser": "~12.3.2", "lightweight-charts": "^4.0.1", "memoizerific": "^1.11.3", "react": "18.2.0", "react-dom": "^18.2.0", "react-native": "0.72.3", "react-native-chart-kit": "^6.12.0", "react-native-eject": "^0.2.0", "react-native-gesture-handler": "~2.12.0", "react-native-haptic-feedback": "^2.0.3", "react-native-image-viewing": "^0.2.2", "react-native-react-bridge": "^0.11.0", "react-native-reanimated": "~3.3.0", "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "^4.6.3", "react-native-screens": "~3.22.0", "react-native-super-grid": "^5.0.0", "react-native-touchable-scale": "^2.2.0", "react-native-wagmi-charts": "^2.3.0", "react-native-web": "~0.19.6", "react-native-webview": "13.2.2" }, "devDependencies": { "@babel/core": "^7.20.0", "@types/react": "~18.2.14", "babel-plugin-transform-remove-console": "^6.9.4", "jest": "^29.2.1", "jest-expo": "~49.0.0", "react-test-renderer": "18.2.0", "typescript": "^5.1.3" }, "overrides": { "react-refresh": "~0.14.0" }, "resolutions": { "react-refresh": "~0.14.0" }, "private": true }

Sidak08 commented 11 months ago

did you figure it out

honeybadger26 commented 7 months ago

Hi @katche70.

I tried using the same package.json file that you have, but was unable to reproduce the error. This is the project that I tried: charttest.tar.gz