jsii icon indicating copy to clipboard operation
jsii copied to clipboard

latest jsii-rosetta package is not used.

Open acomagu opened this issue 2 years ago • 4 comments

Describe the bug

jsii-rosetta moved to another repository and v5.0.x is released, but packages in this repository, such as jsii-pacmak, seems to depend on the old package.

Expected Behavior

jsii-pacmak depends on jsii-rosetta latest release(currently v5.0.7).

Current Behavior

jsii-pacmak depends on jsii-rosetta v1.81.0.

Reproduction Steps

In empty directory, running npm i jsii-pacmak && npm ls --all will shows following results:

empty-repo
└─┬ [email protected]
...
  ├─┬ [email protected]
...

But [email protected] should be installed.

(And running npx jsii-pacmak shows deprecation error even though installed latest jsii-pacmak.

#######################################################################################################
### You are currently using [email protected]. We recommend upgrading to [email protected] or later. This will      ###
### allow you to use modern TypeScript syntax, and improves compatibility with many common          ###
### dependencies. For example, recent versions of @types/node.                                      ###
###                                                                                                 ###
### 5.0.x and subsequent releases of jsii use the same major.minor version as the TypeScript        ###
### compiler they are built on. We recommend declaring a minor-pinned (also known as "tilde")       ###
### dependency on jsii (e.g: `"jsii": "5.0.x"` or `"jsii": "~5.0.7"`).                              ###
###                                                                                                 ###
### For more information, see: https://aws.github.io/jsii/compiler-and-rosetta-maintenance/         ###
###                                                                                                 ###
### This warning can be suppressed by setting the JSII_SUPPRESS_UPGRADE_PROMPT environment variable ###
#######################################################################################################
#######################################################################################################
### You are currently using [email protected]. We recommend upgrading to [email protected] or       ###
### later. This will allow you to use modern TypeScript syntax, and improves compatibility with     ###
### many common dependencies. For example, recent versions of @types/node.                          ###
###                                                                                                 ###
### 5.0.x and subsequent releases of jsii-rosetta use the same major.minor version as the           ###
### TypeScript compiler they are built on. We recommend declaring a minor-pinned (also known as     ###
### "tilde") dependency on jsii-rosetta (e.g: `"jsii-rosetta": "5.0.x"` or                          ###
### `"jsii-rosetta": "~5.0.7"`).                                                                    ###
###                                                                                                 ###
### For more information, see: https://aws.github.io/jsii/compiler-and-rosetta-maintenance/         ###
###                                                                                                 ###
### This warning can be suppressed by setting the JSII_SUPPRESS_UPGRADE_PROMPT environment variable ###
#######################################################################################################

)

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.18.0

Environment details (OS name and version, etc.)

Linux acm-envy3-win 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 GNU/Linux

acomagu avatar May 14 '23 07:05 acomagu

I'm having this issue as well.

jsii-config 1.82.0 jsii 5.0.9 jsii-pacmak 1.8.2 jsii-rosetta 5.0.9 (added to dependencies manually)

MacBook M1 with Ventura 13.4 running in docker container: Linux af7a1abd0672 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 GNU/Linux

dchurchill avatar May 26 '23 20:05 dchurchill

Workaround for fixing this with pnpm as an example. Add the following to your package.json file:

  "pnpm": {
    "overrides": {
      "jsii-rosetta": "~5.1.0"
    }
  },

Then pnpm install and try to run jsii-pacmak again and the warning should go away.

mgwidmann avatar Jun 05 '23 17:06 mgwidmann

For yarn I'm using

  "resolutions": {
    "jsii-rosetta": "~5.1.0"
  },

but this results in Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/commands/transliterate' is not defined by "exports" so i guess at least jsii-docgen still needs the old version.

webratz avatar Jun 09 '23 10:06 webratz

I am experiencing this problem as well.

mrpackethead avatar Jul 02 '23 20:07 mrpackethead

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] avatar Apr 26 '24 08:04 github-actions[bot]