Giter Club home page Giter Club logo

Comments (3)

mrgrain avatar mrgrain commented on June 1, 2024 1

@types/[email protected] is the last ^16 version that works.
@types/node^18.11.19 is the last ^18 version that works.

Also tested @types/node^20 but these never worked, so I'm falling back to ^18 for them.

from projen.

mrgrain avatar mrgrain commented on June 1, 2024

Yes. @types/node has released a version that is not compatible with older versions of TypeScript anymore (you are likely using TS 3.9).

Best way forward is to upgrade to a current version of TS and jsii.

Alternatively use a pin to use the last working version.

FWIW I don't think it's the projen upgrade that causes this, but the upgrade of @types/node in the same PR.

from projen.

mrgrain avatar mrgrain commented on June 1, 2024

Also failing tests in projen itself.

node_modules/@types/node/ts4.8/crypto.d.ts:3495:17 - error TS1110: Type expected.

3495     type UUID = `${string}-${string}-${string}-${string}-${string}`;
                     ~~~
 FAIL  test/jsii/jsii.test.ts (178.227 s)
  ● JsiiProject with default settings › compiles

    Command failed: "/Users/kornherm/.fnm/node-versions/v18.14.2/installation/bin/node" "/Users/kornherm/code/projen/projen/lib/cli/index.js" "compile"
    👾 compile | jsii --silence-warnings=reserved-word
    [2024-02-06T22:12:40.352] [ERROR] jsii/compiler - Compilation errors prevented the JSII assembly from being created
    👾 Task "compile" failed when executing "jsii --silence-warnings=reserved-word" (cwd: /private/var/folders/_z/2dl7wtwd5xz42qh38n0fw0vw0000gr/T/projen.s7S5VW)

      24 | ): void {
      25 |   logging.debug(command);
    > 26 |   child_process.execSync(command, {
         |                 ^
      27 |     stdio: ["inherit", 2, "pipe"], // "pipe" for STDERR means it appears in exceptions
      28 |     maxBuffer: MAX_BUFFER,
      29 |     cwd: options.cwd,

      at exec (src/util.ts:26:17)
      at execProjenCLI (test/util.ts:43:14)
      at Object.<anonymous> (test/jsii/jsii.test.ts:40:18)

from projen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.