Giter Site home page Giter Site logo

Comments (10)

Romakita avatar Romakita commented on September 25, 2024 1

Hello @EinfachHans
You've right, but changing that is probably a breaking change :(

Let me get a time to test if it's possible.

See you
Romain Lenzotti

from tsed.

EinfachHans avatar EinfachHans commented on September 25, 2024

@Romakita maybe we could make this as a "opt-in" feature first via the configuration, then change the default & deprecate in next major and remove the config again in the next major after that?

from tsed.

Romakita avatar Romakita commented on September 25, 2024

Yes, when can try to do that.

The problem is probably located here:

from(token: TokenProvider, parentMiddlewares: any[] = []) {

children.forEach((token: Type<any>) => {

I'm a bit over staffed to do that. But If somebody had a time to add the opt-in, I'll be happy to review the PR ;)
It doesn't seems to be a huge work to add that :)

See you @EinfachHans

Romain

from tsed.

EinfachHans avatar EinfachHans commented on September 25, 2024

@Romakita Do you have a suggested name for the config parameter?

from tsed.

Romakita avatar Romakita commented on September 25, 2024

Hum πŸ˜…... maybe appendNestedRoutesBefore ?

from tsed.

EinfachHans avatar EinfachHans commented on September 25, 2024

@Romakita just want to start a new PR. I tried to get the tests run in the current production branch, without changed made and get the following error:

@tsed/engines: βœ– ERROR: Error: Cannot find module '/Users/einfachhans/IdeaProjects/tsed/tools/mocha/register' imported from /Users/einfachhans/IdeaProjects/tsed/node_modules/mocha/lib/nodejs/esm-utils.js
@tsed/engines: Did you mean to import "/Users/einfachhans/IdeaProjects/tsed/tools/mocha/register.js"?
@tsed/engines:     at finalizeResolution (node:internal/modules/esm/resolve:265:11)
@tsed/engines:     at moduleResolve (node:internal/modules/esm/resolve:933:10)
@tsed/engines:     at defaultResolve (node:internal/modules/esm/resolve:1157:11)
@tsed/engines:     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
@tsed/engines:     at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
@tsed/engines:     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
@tsed/engines:     at ModuleLoader.import (node:internal/modules/esm/loader:322:34)
@tsed/engines:     at defaultImportModuleDynamically (node:internal/modules/esm/utils:197:36)
@tsed/engines:     at importModuleDynamicallyCallback (node:internal/modules/esm/utils:219:12)
@tsed/engines:     at Object.exports.doImport (/Users/einfachhans/IdeaProjects/tsed/node_modules/mocha/lib/nodejs/esm-utils.js:35:34)
@tsed/engines:     at formattedImport (/Users/einfachhans/IdeaProjects/tsed/node_modules/mocha/lib/nodejs/esm-utils.js:9:28)
@tsed/engines:     at exports.requireOrImport (/Users/einfachhans/IdeaProjects/tsed/node_modules/mocha/lib/nodejs/esm-utils.js:42:34)
@tsed/engines:     at exports.handleRequires (/Users/einfachhans/IdeaProjects/tsed/node_modules/mocha/lib/cli/run-helpers.js:94:34)
@tsed/engines:     at async /Users/einfachhans/IdeaProjects/tsed/node_modules/mocha/lib/cli/run.js:349:25 {
@tsed/engines:   code: 'ERR_MODULE_NOT_FOUND',
@tsed/engines:   url: 'file:///Users/einfachhans/IdeaProjects/tsed/tools/mocha/register'
@tsed/engines: }

Any idea why?

from tsed.

Romakita avatar Romakita commented on September 25, 2024

Just run test for the concerned package ;)

Run entire test on this repo will take along time.

Also have you installed the project using Λ‹yarn install` ?

See you

from tsed.

EinfachHans avatar EinfachHans commented on September 25, 2024

Yes, only running the platform-router tests works, but anyway it's weird that i can't run the engine tests in a new fresh environment. Of course i installed the dependencies, i followed the contributing guide πŸ€”

from tsed.

github-actions avatar github-actions commented on September 25, 2024

πŸŽ‰ Are you happy?

If you appreciated the support, know that it is free and is carried out on personal time ;)

A support, even a little bit makes a difference for me and continues to bring you answers!

github opencollective

from tsed.

Romakita avatar Romakita commented on September 25, 2024

πŸŽ‰ This issue has been resolved in version 7.70.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

from tsed.

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.