Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bug after install npm i midtrans-client on ubuntu 20.04 MODULE NOT FOUND #81

Closed
Rizal-R opened this issue Oct 27, 2024 · 9 comments
Closed

Comments

@Rizal-R
Copy link

Rizal-R commented Oct 27, 2024

error

@robertyulisman
Copy link

image
sama, apakah ada perubahan ? sudah makai library terbaru, juga masih sama errornya

@Rizal-R
Copy link
Author

Rizal-R commented Oct 29, 2024

versi 1.3.0 - 1.4.1 masi sama error module not found

@robertyulisman
Copy link

versi 1.3.0 - 1.4.1 masi sama error module not found

mana nih, blm ada balasan sama owner nya, mana sistem udah 2 hari gk bisa dipake, gara2 error ini

@uziwuzzy
Copy link
Collaborator

sorry for the error, please use other version except v1.4*, you can downgrade to use v1.3* for now https://www.npmjs.com/package/midtrans-client?activeTab=versions. Will fix the release within this week.

Dibawah versi 1.4 itu harusnya bisa karena belum ada SnapBi, coba di hapus cachenya.

@robertyulisman
Copy link

sorry for the error, please use other version except v1.4*, you can downgrade to use v1.3* for now https://www.npmjs.com/package/midtrans-client?activeTab=versions. Will fix the release within this week.

Dibawah versi 1.4 itu harusnya bisa karena belum ada SnapBi, coba di hapus cachenya.

baik, terima kasih bg, saya coba dulu, dan nanti kasih feedback, apakah solved atau tidak

@robertyulisman
Copy link

sorry for the error, please use other version except v1.4*, you can downgrade to use v1.3* for now https://www.npmjs.com/package/midtrans-client?activeTab=versions. Will fix the release within this week.

Dibawah versi 1.4 itu harusnya bisa karena belum ada SnapBi, coba di hapus cachenya.

image
masih sama, udah clear cache dan downgrade ke versi 1.3.1

@uziwuzzy
Copy link
Collaborator

kalau masih ada snapBi files, berarti masih di versi 1.4*, coba di make sure lagi, bisa dgn step ini.

// Delete everything

rm -rf node_modules
rm package-lock.json

// Clear all caches

npm cache clean --force
npm cache verify

// Reinstall everything fresh
npm install

@robertyulisman
Copy link

kalau masih ada snapBi files, berarti masih di versi 1.4*, coba di make sure lagi, bisa dgn step ini.

// Delete everything

rm -rf node_modules
rm package-lock.json

// Clear all caches

npm cache clean --force
npm cache verify

// Reinstall everything fresh npm install

sudah semua versi saya coba dari 1.2.3 sampai terbaru, udah test di localhost sampai ke ubuntu semua tidak ada yg berhasil
sudah saya coba dari versi 1.2.3, 1.2.4, 1.3.0, 1.3.1 dan sudah hapus node module, clear chache dan sudah paling bersih, tp tidak ada yg berhasil, coba dari sisi kamu di test juga yg versi 1.3.* kebawah apakah berhasil atau seperti apa ?

TypeError: midtransClient.Snap is not a constructor at Object.<anonymous> (E:\1.kerjaan\1. Proo\new\prooApp\backend\routes\api\midtran.js:25:14) at Module._compile (node:internal/modules/cjs/loader:1480:14) at Module._extensions..js (node:internal/modules/cjs/loader:1564:10) at Module.load (node:internal/modules/cjs/loader:1287:32) at Module._load (node:internal/modules/cjs/loader:1103:12) at Module.require (node:internal/modules/cjs/loader:1310:19)

@Rizal-R
Copy link
Author

Rizal-R commented Oct 29, 2024

fixed downgrade version to 1.3.1

@Rizal-R Rizal-R closed this as completed Oct 29, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants