-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Failed when using --emit-tsd to generate .d.ts from cpp #22181
Comments
You need to have the typescript compiler installed on your system. I think the simplest way is to do |
We should show an error if the user doesn't have tsc installed or the npm package doesn't exists. In this case, it seems like something is wrong with the typescript that is currently installed. |
@wangyuanhao11, what happens if you type |
I have installed ts and the where tsc is : i tried : docker run --rm -it -v ./src:/src -u I have tried to follow the official documentation and I think my ts has been installed successfully,But it's the same error. |
I have installed tsc and i tried according to |
What happens if you run |
Can you share the full error output of this docker command? I was able to run a very similar docker command without issue:
|
my tsc version is:Version 5.5.3
the error :
|
Sorry, just to be clear, you can actually run |
As an random experiment, can you try install emsdk on the same drive as your node/tsc installation (C:)? |
I uninstalled nodejs on the c drive. Now there is only nodejs here. |
when i use emcc like this:
emcc E:\test.cpp -o test.js -sMODULARIZE -s EXPORT_ES6=1 -s ALLOW_MEMORY_GROWTH=1 -s EXPORT_ALL=1 -lembin
d --emit-tsd test.d.ts
The error message it reports is as follows:
emcc: error: 'tsc --outFile C:\Users\BON0027\AppData\Local\Temp\emscripten_temp_1vipmldr\jsdoc.d.ts --declaration --emitDeclarationOnly --allowJs C:\Users\BON0027\AppData\Local\Temp \emscripten_temp_1vipmldr\jsdoc.js' failed: [WinError 2] The system cannot find the file specified.
What is the cause of this and how can I fix it,?any suggestions would be greatly appreciated!
The text was updated successfully, but these errors were encountered: