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 run dev on local windows host #169

Open
3 tasks done
Snehaaa-C opened this issue Dec 14, 2024 · 5 comments
Open
3 tasks done

Unable to run dev on local windows host #169

Snehaaa-C opened this issue Dec 14, 2024 · 5 comments

Comments

@Snehaaa-C
Copy link

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

I followed the setup instructions to run the ESP tool locally on my Windows but I'm encountering an issue where the localhost is not starting as expected.
Screenshot (315)
Screenshot (314)

Actual behavior (suspected bug)

I followed the setup instructions to run the ESP tool locally on my Windows but I'm encountering an issue where the localhost is not starting as expected. Could anyone kindly assist me in debugging this issue? I would greatly appreciate guidance on how to troubleshoot the problem.

Error logs or terminal output

PS C:\Users\SnehaC\Documents\esptool\esptool-js\examples\typescript> npm run dev                                                     

> [email protected] dev
> npm run clean && npm run genDocs && parcel src/index.html


> [email protected] clean
> rimraf dist .parcel-cache


> [email protected] genDocs
> cd ../.. && npm run genDocs && mkdir -p examples/typescript/dist && cp -r docs examples/typescript/dist && cd examples/typescript  


> [email protected] genDocs
> rimraf docs && typedoc

[warning] ResetStrategy, defined in ./src/reset.ts, is referenced by ClassicReset but not included in the documentation.
[warning] FlashReadCallback, defined in ./src/esploader.ts, is referenced by ESPLoader.readFlash.readFlash.onPacketReceived but not included in the documentation.
[info] Documentation generated at ./docs
The syntax of the command is incorrect.
PS C:\Users\SnehaC\Documents\esptool\esptool-js\examples\typescript>

Steps to reproduce the behavior

  1. set the environment.
  2. install package
  3. run command

Project release version

latest

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Windows

Operating system version

11

Shell

Bash

Additional context

No response

@naveenneog
Copy link

Same issue happening with me

@brianignacio5
Copy link
Collaborator

Instead of running npm run dev could you try running npm run clean npm run genDocs parcel src/index.html separately to find the failing command. Seems to me is probably the last one.

I can't reproduce it myself locally.

@Snehaaa-C
Copy link
Author

Thank you for your response!!

have tried to run each command separately the error was in genDocs it was not compatible with windows,
We changed it to windows compatible it is running now.

@brianignacio5
Copy link
Collaborator

Oh sure. What you ended up with ? I can try to update it so it works on both windows/posix systems

@Snehaaa-C
Copy link
Author

We have changed the genDocs path command in scripts, below is the one which is updated package.json file.

{
"name": "typescript",
"version": "1.0.0",
"description": "This an example of using esptool-js with parcel and typescript",
"source": "src/index.html",
"scripts": {
"genDocs": "cd ..\.. && npm run genDocs && mkdir examples\typescript\dist && xcopy docs examples\typescript\dist /E /I && cd examples\typescript",
"dev": "npm run clean && npm run genDocs && parcel src\index.html",
"build": "npm run clean && npm run genDocs && parcel build src\index.html --no-optimize --public-url ./",
"clean": "rimraf dist .parcel-cache",
"test": "echo Error: no test specified && exit 1"
},
"parcelIgnore": [
"./docs/.+"
],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/w3c-web-usb": "^1.0.10",
"parcel": "^2.8.3",
"parcel-resolver-ignore": "^2.1.5",
"rimraf": "^4.1.2",
"typescript": "^4.9.4",
"web-serial-polyfill": "^1.0.15"
}
}

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

3 participants