You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I set up my project using create-react-app and installed Galeforce, but when I try to import the package I get an error in the terminal: Module not found: Can't resolve 'console' in 'D:\Projects\LoLTest\node_modules\ts-node\dist'.
Reproduction Steps
Create a new project by running the command npx create-react-app LoLTest
In the project directory, install Galeforce by running npm i galeforce
In the App.js file, import Galeforce using the following code: import GaleforceModule from 'galeforce';
Run npm start and the page will fail to display due to the compile error described above
Specifications (please complete the following information):
OS: Windows
The text was updated successfully, but these errors were encountered:
JavaScript libraries like these are meant to be ran in the back end on node.js, not compiled into the front end like React.
If you were to use it on the front end you would be exposing your API key to everyone which is against Riot's developer policies as well as someone could get your key blacklisted.
Description
I set up my project using create-react-app and installed Galeforce, but when I try to import the package I get an error in the terminal:
Module not found: Can't resolve 'console' in 'D:\Projects\LoLTest\node_modules\ts-node\dist'
.Reproduction Steps
npx create-react-app LoLTest
npm i galeforce
App.js
file, import Galeforce using the following code:import GaleforceModule from 'galeforce';
npm start
and the page will fail to display due to the compile error described aboveSpecifications (please complete the following information):
The text was updated successfully, but these errors were encountered: