Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

React.js Support + screeps-api npm package does not contain src folder #73

Open
DefaultO opened this issue May 13, 2023 · 0 comments
Open

Comments

@DefaultO
Copy link

(1) I am trying to get this library working on a React.js App. The first issue I was facing is the problem with it not getting resolved because the package.json contains this in a line: "module": "src/index.js". I solved that by downloading this repository as a zip and copying the src folder into the screeps-api folder in my projects node_modules folder.

image

(2) Now I am facing the issue that your script turns my React.js App white as soon I try to import ScreepsAPI from the package. This implies there is a syntax error. Could you perhaps make this compatible with React.js? It happens as soon I try to import ScreepsAPI using import { ScreepsAPI } from 'screeps-api';.

I am using Vite.js for development. But should happen on React.js in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant