Colorfulstan / LeagueJS

A Javascript Wrapper for the League of Legends API
MIT License
99 stars 7 forks source link

LeagueJS and Crodova? #10

Closed SertyDev closed 6 years ago

SertyDev commented 6 years ago

Hello, I am using Cordova and after looking for two days and before asking in some Cordova forum I wanted to know if it´s possible to use LeagueJS in this kind of technology. I installed it (so it is in node_modules) but I can´t find the module in the JS using require() (cordova.require() in my case).

Thank you.

Colorfulstan commented 6 years ago

Hey, im sorry, I don't have experience with cordova.

Just from a quick google search, you might need to make sure the library is included within your www folder!?

https://stackoverflow.com/questions/46466372/how-do-i-load-node-modules-in-cordova-web-browser-modules-not-node-js-specifi

Guess you have propably found that yourself already.

What does your require call / usage look like? What error messages do you get when trying to require it?

SertyDev commented 6 years ago

Hello,

Thank you very much for your response.

At the end, because I´m making this to learn and have some fun, I decided to create my first custom API. It´s not going to be as good as LeagueJS ofcourse but I was excited to do it.

But this looks pretty relevant : "you might need to make sure the library is included within your www folder"

The error was just "module not found", I think it can be done but with a little more knowledge of node modules.

Again thank you very much!