Code Monkey home page Code Monkey logo

Comments (4)

raurir avatar raurir commented on July 25, 2024

@agdimech Are you having the same issue in #710 ?

from aws-pdk.

carter293 avatar carter293 commented on July 25, 2024

I've also had this issue and can't find a solution...

from aws-pdk.

agdimech avatar agdimech commented on July 25, 2024

Hi - sorry for the delayed response.

The reason this is happening is because we actual pin the projen version as per:

import PROJEN_VERSION from "./projen-version";

So what is happening is the following:

1.) npm-check-updates runs and bumps everything to the latest version (projen is 0.82.6 as of today)
2.) syncpack ensures all subprojects use this version
3.) a synthesis occurs which picks up the default projen version which is currently pinned to ^0.79.24

To resolve this, you will need to do pin the projen version within your .projenrc as follows:

Option A: Pinned Version

const monorepo = new MonorepoTsProject({
  name: "@demo/monorepo",
  defaultReleaseBranch: "main",
  packageManager: NodePackageManager.PNPM,
  projenVersion: "^0.82.6",
  tsconfig: {
    compilerOptions: {
      lib: ["es2019", "dom"],
      skipLibCheck: true,
    },
  },
});

Option B: Latest Resolved Version

Note: this will result in the projen version being bumped each time you run a synth.

const monorepo = new MonorepoTsProject({
  name: "@demo/monorepo",
  defaultReleaseBranch: "main",
  packageManager: NodePackageManager.PNPM,
  projenVersion: "*",
  tsconfig: {
    compilerOptions: {
      lib: ["es2019", "dom"],
      skipLibCheck: true,
    },
  },
});

Let me know if this resolves your issue and again apologies for the delay (I was on vacation and then quite sick :( )

from aws-pdk.

raurir avatar raurir commented on July 25, 2024

@agdimech Thank you!

Very Close... the dependencies updated, and almost everything builds.

Unfortunately the latest CloudscapeReactTsWebsiteProject is causing this error when building the website:

Attempted import error: 'getLogicalBoundingClientRect' is not exported from '@cloudscape-design/component-toolkit/internal' (imported as 'getLogicalBoundingClientRect').

I have logged a bug here which hopefully resolves it: cloudscape-design/component-toolkit#66

In my demo repo I did not add a CloudscapeReactTsWebsiteProject to keep things simple :(

from aws-pdk.

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.