You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jsii --watch always exits with the following error:
Error: Error: Unexpectedly returned from createWatchProgram
at Compiler._startWatch (/Users/benisrae/code/cdk/aws-cdk/node_modules/jsii/lib/compiler.js:111:31)
at Compiler.emit (/Users/benisrae/code/cdk/aws-cdk/node_modules/jsii/lib/compiler.js:60:25
The text was updated successfully, but these errors were encountered:
A change in the TypeScript compiler API around how the compiler host
reacts when invoked in `--watch` mode caused a failure in `jsii` due to
the method changing behaviors from not returning at all when watching to
instead returning an object that can be used to inspect/influence the
background watch process.
Changed the behavior of the `Compiler` interface so it now acts as an
`EventEmitter` when operating in `--watch` mode, and introduced a test
that confirms that operating with `--watch` results in the correct
behavior of watching for file changes and dynamically re-compiling.
Fixes#1149
* fix(jsii): `--watch` causes immediate failure
A change in the TypeScript compiler API around how the compiler host
reacts when invoked in `--watch` mode caused a failure in `jsii` due to
the method changing behaviors from not returning at all when watching to
instead returning an object that can be used to inspect/influence the
background watch process.
Changed the behavior of the `Compiler` interface so it now acts as an
`EventEmitter` when operating in `--watch` mode, and introduced a test
that confirms that operating with `--watch` results in the correct
behavior of watching for file changes and dynamically re-compiling.
Fixes#1149
* some PR feedback
* fix dummy project
* better encapsulate watch API
* Update packages/jsii/bin/jsii.ts
Co-Authored-By: Elad Ben-Israel <benisrae@amazon.com>
* expose ts API instead of wrapping it
Co-authored-by: Elad Ben-Israel <benisrae@amazon.com>
🐛 Bug Report
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)General Information
What is the problem?
jsii --watch
always exits with the following error:The text was updated successfully, but these errors were encountered: