Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Error about TypeScriptWriter-base-declaration.txt occurs when compile with --typescript #819

Closed
konichan7 opened this issue Jul 15, 2021 · 5 comments
Assignees

Comments

@konichan7
Copy link

konichan7 commented Jul 15, 2021

There's an error when i run qx compile --typescript
Full error like below.

Error: Error: ENOENT: no such file or directory, open 'C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\TypeScriptWriter-base_declaration.txt'
    at Promise.longStackTracesCaptureStackTrace [as _captureStackTrace] (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:27354:29)
    at doThenable (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:31349:23)
    at tryConvertToPromise (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:31314:26)
    at PromiseArray._iterate (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:30080:36)
    at PromiseArray.init [as _init] (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:30068:20)
    at new PromiseArray (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:30013:20)
    at Function.Promise.all (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:29268:22)
    at Function.qx.Promise.__P_64_8() [as __P_64_8] (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:26101:68)
    at Function.qx.Promise.all() [as all] (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:25686:27)
    at wrapper.qx.tool.cli.commands.Compile.prototype._loadConfigAndStartMaking() [as _loadConfigAndStartMaking] (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:51357:26)
    at async wrapper.qx.tool.cli.commands.Compile.prototype.process() [as process] (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:51312:9)
    at async wrapper.qx.tool.cli.Cli.prototype.processCommand() [as processCommand] (C:\myWorkingDir\node_modules\@qooxdoo\compiler\lib\compiler\index.js:40530:18)

i fixed this problem by make new TypeScriptWriter-base_declaration.txt file with dummy text and locate it under that path (node_modules\@qooxdoo\compiler\lib\compiler\). but i'm still not sure this is the best option.

thanks.

@derrell
Copy link
Member

derrell commented Jul 15, 2021

This is a duplicate of #741. As a workaround right now, the error can be ignored as it causes no problems for the generated code. It is highly annoying, however.

@derrell
Copy link
Member

derrell commented Jul 15, 2021

Actually, maybe it isn't a duplicate, but appears related. The error message isn't quite the same, and the cause seems related.

@hkollmann
Copy link
Member

This is solved in qooxdoo/qooxdoo#10214. Should be backported.

@hkollmann hkollmann self-assigned this Jul 19, 2021
@konichan7
Copy link
Author

cool. 😊

@hkollmann
Copy link
Member

fixed with #823 and #827

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

No branches or pull requests

3 participants