GithubHelp home page GithubHelp logo

Comments (7)

micalevisk avatar micalevisk commented on April 28, 2024

nestjs/nest#8076 (comment)

from serve-static.

UTGuy avatar UTGuy commented on April 28, 2024

@micalevisk I need to be clearer it seems... the unit test above passes with no issue. It's when I try to package that module in NPM and use it in another project... thats when the error happens

from serve-static.

micalevisk avatar micalevisk commented on April 28, 2024

@UTGuy Oh so that's probably due to having more than one @nestjs/core/common loaded, which is expected due to how js works. Make sure you're using peer deps instead of hard dependencies

Hard to tell more without a repro.

from serve-static.

UTGuy avatar UTGuy commented on April 28, 2024

Make sure you're using peer deps instead of hard dependencies

I will give that a shot

from serve-static.

UTGuy avatar UTGuy commented on April 28, 2024

@micalevisk This indeed fixed it! Thank you!

from serve-static.

metinjakupi avatar metinjakupi commented on April 28, 2024

@UTGuy how did you fix this?

from serve-static.

LukaszKokot avatar LukaszKokot commented on April 28, 2024

For the record, in case it might be helpful for others...
I had updated a project I had not touched for months and upgraded all Nest libraries to latest 10+.
I ended up having exactly this error, and no override or change worked until out of desperation I rm -rf the node modules folder and reinstalled. This was the solution to actually get rid of the older version of @nestjs/core (which was indeed the culprit)

from serve-static.

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.