Code Monkey home page Code Monkey logo

project-templates's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

project-templates's Issues

Ts-node version not compatible with runtime anymore

In fact, already fixed, but need a release in order to get pulled by kourou.
https://github.com/kuzzleio/kourou/blob/f816d9ec3f909dc7fdc1bda6d66ce732ee1d56dd/src/commands/app/scaffold.ts#L44

Docker logs when dry run of kourou app:scaffold temp:

kuzzle_1         |         ts.Debug.assert(typeof typeReferenceDirectiveName === "string", "Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");
kuzzle_1         |                  ^
kuzzle_1         | Error: Debug Failure. False expression: Non-string value passed to `ts.resolveTyp eReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.
kuzzle_1         |     at Object.resolveTypeReferenceDirective (/var/app/node_modules/typescript/lib /typescript.js:42537:18)
kuzzle_1         |     at /var/app/node_modules/ts-node/src/index.ts:623:55
kuzzle_1         |     at Array.map (<anonymous>)
kuzzle_1         |     at Object.resolveTypeReferenceDirectives (/var/app/node_modules/ts-node/src/index.ts:622:33)
kuzzle_1         |     at actualResolveTypeReferenceDirectiveNamesWorker (/var/app/node_modules/typescript/lib/typescript.js:116674:163)
kuzzle_1         |     at resolveTypeReferenceDirectiveNamesWorker (/var/app/node_modules/typescript/lib/typescript.js:116974:26)
kuzzle_1         |     at processTypeReferenceDirectives (/var/app/node_modules/typescript/lib/typescript.js:118456:31)
kuzzle_1         |     at findSourceFileWorker (/var/app/node_modules/typescript/lib/typescript.js:118341:21)
kuzzle_1         |     at findSourceFile (/var/app/node_modules/typescript/lib/typescript.js:118196:26)
kuzzle_1         |     at processImportedModules (/var/app/node_modules/typescript/lib/typescript.js:118602:25)
kuzzle_1         | [RELOADER] Process exited with code 1. Waiting for a file change to restart it.

Ts-node version in packages.json is deprecated, kuzzle isn't an isolated case

Changing to this version works:

"ts-node": "^10.7.0",

Edit: Just needed to update kourou

Project Template Generic does not build when running docker build with configured dockerfile

The tsconfig.json file is missing the outDir property

Working configuration

{
  "compilerOptions": {
    "outDir": "dist",
    "lib": ["ES6"],
    "declaration": true,
    "listEmittedFiles": true,
    "module": "commonjs",
    "target": "es2020",
    "moduleResolution": "node",
    "sourceMap": true,
    "baseUrl": ".",
    "resolveJsonModule": true,
    "esModuleInterop": true
  },
  "rootDir": "lib/",
  "include": [
    "app.ts",
    "lib/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}

Step failing in the dockerfile is COPY --from=builder /var/app/dist . L29

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.