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

Unable to install ESP Web Tools with Yarn: Can't add "esptool-js": invalid package version undefined #293

Closed
mesopa opened this issue Oct 30, 2022 · 3 comments

Comments

@mesopa
Copy link

mesopa commented Oct 30, 2022

After many months I tried again web ESP Tools, felt very hipped because I saw Typescript but ended up frustrated.

Running the following command to install the library on my existing React project:
yarn add esp-web-tools

Outputs the following error message:

error Can't add "esptool-js": invalid package version undefined. info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Does anyone has any hints? Something that I'm missing.
Much appreciated.

@balloob
Copy link
Member

balloob commented Oct 30, 2022

Yarn complains about the esptool-js package not having a version number. It's a limitation of Yarn, NPM has no such problem.

I recommend to use the installation instructions on our website which recommends to include it from a CDN: https://esphome.github.io/esp-web-tools/#add-website

@balloob balloob changed the title Can't add "esptool-js": invalid package version undefined Unable to install ESP Web Tools with Yarn: Can't add "esptool-js": invalid package version undefined Oct 30, 2022
@mesopa
Copy link
Author

mesopa commented Nov 1, 2022

That solved my problem. Much appreciated.

Since is is a model nicely Trypescripted, could be really nice to make it work with React.

@balloob
Copy link
Member

balloob commented Jan 18, 2023

Fixed in 9.2.0

@balloob balloob closed this as completed Jan 18, 2023
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

2 participants