Giter Club home page Giter Club logo

Comments (11)

gremo avatar gremo commented on July 21, 2024 3

I'll try to remove it ASAP. I don't even know why I used a library in the first place, for just like.. 4 colors. In the meanwhile I'll deprecate 1.6.3

from nest-winston.

gremo avatar gremo commented on July 21, 2024 3

You're welcome @rbonestell ! I'm sorry to have published a broken release but I almost forgot about that PR with the major chalk upgrade. Plus that code isnt' tested, feel free to collaborate further πŸ‘

from nest-winston.

gremo avatar gremo commented on July 21, 2024 1

Can you test the master version with chalk removed? @lwhiteley @rbonestell

from nest-winston.

gremo avatar gremo commented on July 21, 2024

Are you able to downgrade to chalk@4? I think it’s the only way to ho.

from nest-winston.

gremo avatar gremo commented on July 21, 2024

We could also remove the dependecy I think: https://github.com/nestjs/nest/blob/master/packages/common/utils/cli-colors.util.ts

WDYT

from nest-winston.

rbonestell avatar rbonestell commented on July 21, 2024

Rolling back the dependency version would be the simplest solution, but if it's unnecessary and would not be a breaking change, then removing it would likely be the proper solution.

from nest-winston.

zhonggithub avatar zhonggithub commented on July 21, 2024

same issue

from nest-winston.

lwhiteley avatar lwhiteley commented on July 21, 2024

same issue

For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

   /node_modules/.pnpm/[email protected]/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      at Runtime.createScriptFromCode (../../node_modules/.pnpm/[email protected]/node_modules/jest-runtime/build/index.js:1728:14)
      at Object.<anonymous> (../../node_modules/.pnpm/[email protected]_xi77xy5t5f67nxxivjlejge6yy/node_modules/nest-winston/dist/winston.utilities.js:18:33)

from nest-winston.

lwhiteley avatar lwhiteley commented on July 21, 2024

just an FYI:
ive ran into this issue before and just replaced chalk with
https://www.npmjs.com/package/ansi-colors

from nest-winston.

lwhiteley avatar lwhiteley commented on July 21, 2024

Awesome, works for me! πŸ‘πŸΎ

from nest-winston.

rbonestell avatar rbonestell commented on July 21, 2024

Works great! Thanks for the quick fix @gremo!

from nest-winston.

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.