Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot run with chalkjs #12309

Closed
KermanX opened this issue Feb 6, 2022 · 3 comments
Closed

[Bug]: Cannot run with chalkjs #12309

KermanX opened this issue Feb 6, 2022 · 3 comments

Comments

@KermanX
Copy link

KermanX commented Feb 6, 2022

Version

27.4.7

Steps to reproduce

  1. clone https://github.com/UniCoderGroup/utty-node/tree/5cfefa615a240a9c618085dd28c8bf95c7581cbd
  2. npm i
  3. npm run test

Expected behavior

The test runs.

Actual behavior

ERROR:

Cannot find module '#ansi-styles' from 'node_modules/chalk/source/index.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/resolver.js:324:11)

Additional context

It seems that jest cannot resolve module path begin with #.

Environment

System:
    OS: Windows 10 10.0.19043
    CPU: (8) x64 AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx
  Binaries:
    Node: 14.16.0 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    jest: 27.4.7 => 27.4.7
@KermanX
Copy link
Author

KermanX commented Feb 6, 2022

Related issue: chalk/chalk#532

@SimenB
Copy link
Member

SimenB commented Feb 7, 2022

Duplicate of #12270

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants