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

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

Open
katche70 opened this issue Aug 16, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@katche70
Copy link

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
gorhom/react-native-bottom-sheet#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
Copy link

Sidak08 commented Dec 16, 2023

did you figure it out

@honeybadger26
Copy link
Collaborator

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

@honeybadger26 honeybadger26 added the bug Something isn't working label Apr 22, 2024
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

3 participants