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
I'm trying to use the module with cdktf but I'm getting errors when calling cdktf get to generate the cdk contructs:
NOTE: Temp directory retained due to an error: /tmp/temp-rYawex
Error: jsii compilation failed with non-zero exit code: 1
| [2023-08-07T17:40:49.119] [ERROR] jsii/compiler - Compilation errors prevented the JSII assembly from being created
| warning JSII6: A "peerDependency" on "constructs" at "10.2.69" means you should take a "devDependency" on "constructs" at "10.2.69" (found "undefined")
| warning JSII6: A "peerDependency" on "cdktf" at "0.17.3" means you should take a "devDependency" on "cdktf" at "0.17.3" (found "undefined")
| warning JSII3: There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages.
| modules/k3s.ts:5:1 - error JSII5015: Interface "k3s.K3SConfig" re-declares member "dependsOn". This is not supported as it results in invalid C#.
| 5 export interface K3SConfig extends TerraformModuleUserConfig {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 6 /**
| ~~~~~
| ...
| 80 readonly useSudo?: boolean;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 81 }
| ~
| modules/k3s.ts:87:14 - error JSII8000: Type names must be PascalCased. Rename "K3S" to "K3s"
| 87 export class K3S extends TerraformModule {
| ~~~
| modules/k3s.ts:128:14 - error TS2611: 'dependsOn' is defined as a property in class 'TerraformModule', but is overridden here in 'K3S' as an accessor.
| 128 public get dependsOn(): any | undefined {
| ~~~~~~~~~
+----------------------------------------------------------------------------------
| Command: /home/linuxbrew/.linuxbrew/Cellar/cdktf/0.17.3/libexec/lib/node_modules/cdktf-cli/node_modules/jsii/bin/jsii --silence-warnings reserved-word
| Workdir: /tmp/temp-rYawex
+----------------------------------------------------------------------------------
at p (/home/linuxbrew/.linuxbrew/Cellar/cdktf/0.17.3/libexec/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:51:1581)
at ChildProcess.<anonymous> (/home/linuxbrew/.linuxbrew/Cellar/cdktf/0.17.3/libexec/lib/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:54:112)
at Object.onceWrapper (node:events:629:26)
at ChildProcess.emit (node:events:514:28)
at ChildProcess.emit (node:domain:489:12)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
⠦ downloading and generating modules and providers...
Error: jsii compilation failed with non-zero exit code: 1
| [2023-08-07T17:40:49.119] [ERROR] jsii/compiler - Compilation errors prevented the JSII assembly from being created
| warning JSII6: A "peerDependency" on "constructs" at "10.2.69" means you should take a "devDependency" on "constructs" at "10.2.69" (found "undefined")
| warning JSII6: A "peerDependency" on "cdktf" at "0.17.3" means you should take a "devDependency" on "cdktf" at "0.17.3" (found "undefined")
| warning JSII3: There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages.
| modules/k3s.ts:5:1 - error JSII5015: Interface "k3s.K3SConfig" re-declares member "dependsOn". This is not supported as it results in invalid C#.
| 5 export interface K3SConfig extends TerraformModuleUserConfig {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 6 /**
| ~~~~~
| ...
| 80 readonly useSudo?: boolean;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 81 }
| ~
| modules/k3s.ts:87:14 - error JSII8000: Type names must be PascalCased. Rename "K3S" to "K3s"
| 87 export class K3S extends TerraformModule {
| ~~~
| modules/k3s.ts:128:14 - error TS2611: 'dependsOn' is defined as a property in class 'TerraformModule', but is overridden here in 'K3S' as an accessor.
| 128 public get dependsOn(): any | undefined {
| ~~~~~~~~~
+----------------------------------------------------------------------------------
| Command: /home/linuxbrew/.linuxbrew/Cellar/cdktf/0.17.3/libexec/lib/node_modules/cdktf-cli/node_modules/jsii/bin/jsii --silence-warnings reserved-word
| Workdir: /tmp/temp-rYawex
The text was updated successfully, but these errors were encountered:
This is the first I've heard of this project, so I'm not sure what I'm going to say 😅.
I think the dependsOn generated by converting depends_on (snake case) into pascal case. For now, I will not change this variable name because of breaking changes (I need to improve how I manage this project before because it's not well maintained 🫤)
For the second one (modules/k3s.ts:87:14 - error JSII8000: Type names must be PascalCased. Rename "K3S" to "K3s"), I can't do anything.
I'll try cdktf but not right away (I don't have enough time to do it), so I'll let you know when it's done.
Of course, any help on this subject will be greatly appreciated 😄
I haven't had enough time (and patience) to find a solution to this issue.
If anyone wants to try and solve it, I'd be grateful... but for now, I'm closing this issue.
I'm trying to use the module with cdktf but I'm getting errors when calling
cdktf get
to generate the cdk contructs:The text was updated successfully, but these errors were encountered: