numandev1 / react-native-compressor

🗜️Compress Image, Video, and Audio same like Whatsapp 🚀✨
MIT License
852 stars 85 forks source link

Could not find com.github.nomi9995:VideoCompressor:715bcc16e9. #99

Closed lukeTheWizard closed 1 year ago

lukeTheWizard commented 2 years ago

I cant build the app after npm install react-native-compressor@rnlessthan65. I have done a gradelw clean, removed node_modules and reinstalled.

Current behavior

When running app with npx react-native run-android I get a build error of: Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.

Could not find com.github.nomi9995:VideoCompressor:715bcc16e9. Searched in the following locations: .........

Expected behavior

App Builds

Platform

React Native Version

0.60.4

React Native Compressor Version

Reproducible Steps And Demo

github-actions[bot] commented 2 years ago

👋 @lukeTheWizard Thanks for opening your issue here! If you find this package useful hit the star🌟!

numandev1 commented 2 years ago

@lukeTheWizard can you add this line into build.gradle > allprojects > repositories and test again.

maven { url 'https://jitpack.io' }
lukeTheWizard commented 2 years ago

@nomi9995 that fixes the compilation issues. However Im now getting a runtime error:

error: bundling failed: SyntaxError: /REDACTED/node_modules/react-native-compressor/src/Audio/index.tsx: Unexpected token, expected ")" (62:18)

60 | }); 61 | }

62 | } catch (error: any) { | ^ 63 | throw error.message; 64 | } 65 | },

numandev1 commented 2 years ago

@lukeTheWizard are you trying to compress audio?

lukeTheWizard commented 2 years ago

No just a regular image. The error pops up from just importing. Could this be a node version or something? My project isn't typescript either

numandev1 commented 2 years ago

@lukeTheWizard which version of node, you are using?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.