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

Fails to build on Windows 10 #2779

Open
4 tasks done
HaydenFaulkner opened this issue Oct 13, 2023 · 6 comments
Open
4 tasks done

Fails to build on Windows 10 #2779

HaydenFaulkner opened this issue Oct 13, 2023 · 6 comments

Comments

@HaydenFaulkner
Copy link

What happened and what did you expect to happen?

upon running the initial npm run build, the process fails on:

'.' is not recognized as an internal or external command,
operable program or batch file.

Error: Command failed: ./node_modules/typescript/bin/tsc --build config/tsconfig.red.json
'.' is not recognized as an internal or external command,
operable program or batch file.

Attempted on Windows 10 (OS build 19045.3570). Tried building on Linux system and builds as expected.

Have you reviewed our existing documentation?

Reproduction steps

Run npm run build in amazon-chime-sdk-js-main

Amazon Chime SDK for JavaScript version

NA

What browsers are you seeing the problem on?

NA

Browser version

NA

Meeting and Attendee ID Information.

No response

Browser console logs

NA

@andrii-hrytsyshyn
Copy link

@HaydenFaulkner I have the same problem. Do you know how to fix it?

@HaydenFaulkner
Copy link
Author

Used Linux instead of Windows

@tkulis
Copy link

tkulis commented Nov 16, 2023

Any news here?

@andrii-hrytsyshyn
Copy link

@tkulis No, I started working on Mac. Everything works fine there

@burnhamrobertp
Copy link

burnhamrobertp commented Dec 20, 2023

This can be done with some extra work that I pieced together from other (similar) issues. The root of the problem stems from the generate-red-worker-code file's attempt to run the relatively pathed call to tsc.

  1. Navigate to amazon-chime-sdk-js root directory, run node script/barrelize.js && node script/generate-version.js
  2. Edit generate-red-worker-code.js and comment out the line runCommandWithLogs('./node_modules/typescript/bin/tsc --build config/tsconfig.red.json');
  3. Run npm run red
  4. Run ./node_modules/typescript/bin/tsc --build config/tsconfig.red.json to transpile the RedundantAudioEncoder (since we commented it out in step 2 to keep it from erroring in step 3)
  5. cd into the demos/browser directory
  6. run npm run start

@SneakyTurtle20
Copy link

SneakyTurtle20 commented Apr 22, 2024

Any news on this one working in windows? I have ran into this error as well.

I have tried this in windows
#2779 (comment)

But still didn't work out for me.

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

5 participants