macabeus / react-gbajs

🕹 GBA emulator on your React project - easy and powerful to use!
https://www.npmjs.com/package/react-gbajs
BSD 2-Clause "Simplified" License
71 stars 14 forks source link

Issues cloning & reproducing Sample #13

Closed Alx-AI closed 3 years ago

Alx-AI commented 3 years ago

After cloning even after npm installing -g react-gbajs I run into both issues: Cannot find module 'react-gbajs' or its corresponding type declarations. and Parameter 'level' implicitly has an 'any' type. TS7006: Parameter 'message' implicitly has an 'any' type.

Is this package no-longer updated or am I doing something horribly wrong. Thank you - Getting used to React

Alx-AI commented 3 years ago

Update: After deleting package-lock.json and node_modules before npm install --> npm run start I fixed the cannot find module error in the sample project but still have the following errors: TS7006: Parameter 'level' implicitly has an 'any' type. and TS7006: Parameter 'message' implicitly has an 'any' type.

The webpage loads but without the emulator screen (image attached) image

macabeus commented 3 years ago

Hey, I updated the readme to explain better how to install this package: https://github.com/macabeus/react-gbajs/commit/5af78d5d0419b1ce74727b3daebcf80ef8593d57 But in short, you shouldn't use -g. You should install the dependencies locally. Both the package's dependencies and for the /sample project should be installed locally.

Also, there is no emulator screen per default. You should firstly load a ROM (clicking at the Choose File button) and then the emulator will appear. It should work if you set up the project following the readme. I checked it now.

macabeus commented 3 years ago

@AlxDfy Did you solve your problem? Or is there something else?

Alx-AI commented 3 years ago

It did not solve my problem, I still ran into the same issues: Cannot find module 'react-gbajs' or its corresponding type declarations. and Parameter 'level' implicitly has an 'any' type. TS7006: Parameter 'message' implicitly has an 'any' type.

However I assume it is my own env issues and I do not have time to debug currently so will close for now, thank you!