Git Product home page Git Product logo

neulabscom / neulabs-cdk-constructs Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 1.0 1.99 MB

The neulabs-cdk-constructs library contains CDK-based constructs and stacks to allow the creation of cloud infrastructure on AWS.

Home Page: https://constructs.dev/packages/neulabs-cdk-constructs

License: Apache License 2.0

JavaScript 3.48% TypeScript 96.28% Shell 0.24%
aws cdk cdk-constructs cloudformation jsii newrelic projen typescript infrastructure-as-code

neulabs-cdk-constructs's Issues

๐Ÿ› [BUG] - Error importing NewRelic CDK Stack

Description

Temporary solution is to import the stack with this code:
import { newrelic } from 'neulabs-cdk-constructs/lib/stacks/monitoring/index.js';

Reproduction steps

After importing the stack, the deploy will fail with this error:

Logs

Using stage: staging
Preparing your SST app

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/pregno/Neulabs/misato/node_modules/neulabs-cdk-constructs/lib/stacks/monitoring/index' imported from /Users/pregno/Neulabs/misato/brands/cibocrudo/infrastructure/.build/lib/index.js
Did you mean to import neulabs-cdk-constructs/lib/stacks/monitoring/index.js?
    at new NodeError (node:internal/errors:372:5)
    at finalizeResolution (node:internal/modules/esm/resolve:437:11)
    at moduleResolve (node:internal/modules/esm/resolve:1009:10)
    at defaultResolve (node:internal/modules/esm/resolve:1218:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
    at link (node:internal/modules/esm/module_job:78:36)



There was an error synthesizing your app.
error Command failed with exit code 1.

OS

Linux, Mac

OS Version

unix

Language

Typescript

๐Ÿ› [BUG] - CDK Tests linter error

Description

Trying to add unit test to cdk I am getting the following linter error:

Argument of type 'ExampleStack' is not assignable to parameter of type 'Stack'.
  Types of property 'tags' are incompatible.
    Type 'import(".../cdk/node_modules/neulabs-cdk-constructs/node_modules/aws-cdk-lib/core/lib/tag-manager").TagManager' is not assignable to type 'import(".../cdk/node_modules/aws-cdk-lib/core/lib/tag-manager").TagManager'.
      Types have separate declarations of a private property 'tags'.

Reproduction steps

1. Start from the base example of cdk
2. Import a stack that extends BaseStack
3. See error

Logs

Argument of type 'ExampleStack' is not assignable to parameter of type 'Stack'.
  Types of property 'tags' are incompatible.
    Type 'import(".../cdk/node_modules/neulabs-cdk-constructs/node_modules/aws-cdk-lib/core/lib/tag-manager").TagManager' is not assignable to type 'import(".../cdk/node_modules/aws-cdk-lib/core/lib/tag-manager").TagManager'.
      Types have separate declarations of a private property 'tags'.

OS

Mac

OS Version

Ventura 13.4.1

Language

Typescript

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.