Skip to content

runJest: Error: Cannot find module 'jest-cli/build/cli/args' #2942

Closed

Description

@goulu

Stencil version:
(with jest and jest-cli)

+-- @ionic/[email protected]
| +-- @stencil/[email protected]  deduped
| `-- [email protected]
|   `-- @stencil/[email protected]  deduped
+-- @stencil/[email protected]
+-- [email protected]
| `-- [email protected]  deduped
`-- [email protected]

I'm submitting a:

[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
any call to stencil test ... builds, then causes

[ ERROR ]  runJest: Error: Cannot find module 'jest-cli/build/cli/args' Require stack: -
           C:\Users\guglie0p\AppData\Roaming\npm\node_modules\@stencil\core\testing\index.js -
           C:\Users\guglie0p\AppData\Roaming\npm\node_modules\@stencil\core\cli\index.cjs -
           C:\Users\guglie0p\AppData\Roaming\npm\node_modules\@stencil\core\bin\stencil

(on Windows...)

Expected behavior:
run the tests
( worked with @stencil/core": "^2.5.2", "@types/jest": "^26.0.20" , will revert to these versions ...)

Activity

  1. splitinfinities commented on Aug 17, 2021

    @splitinfinities
    Contributor

    Will be solved with #2980

  2. goulu commented on Aug 18, 2021

    @goulu
    Author

    just tested with
    +-- @ionic/[email protected] | +-- @stencil/[email protected] | -- [email protected]
    | -- @stencil/[email protected] deduped +-- [email protected] +-- [email protected] | -- [email protected] deduped`

    and got

    runJest: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './build/cli/args' is not defined by "exports" in C:\path\package.json

    @splitinfinities how can I test #2980 please ?
    npm i -g [email protected]:ionic-team/stencil.git#STENCIL-17-upgrade-jest ?

  3. splitinfinities commented on Aug 18, 2021

    @splitinfinities
    Contributor

    @goulu we're still working on it. We'll likely let folks know there when this is ready to test. There are broader implications we need to work our around this regarding the TS Typings.

  4. sforner405 commented on Oct 7, 2021

    @sforner405

    Any news on that? PR is open for a while now and seems on hold

  5. bjankord commented on Oct 12, 2021

    @bjankord
    Contributor

    Just ran into this today when updating jest from 26.4.2 to 27.2.5 and jest-cli from 26.6.3 to 27.2.5

  6. raphzandrade commented on Oct 29, 2021

    @raphzandrade

    Also ran into this problem updating jest and jest-cli to 27.2.3. Any fixes?

  7. dkhir commented on Nov 3, 2021

    @dkhir

    Also ran into this problem updating jest and jest-cli to 27.2.1 version.

  8. dcxn commented on Dec 23, 2021

    @dcxn

    Still present for me as well with jest and jest-cli v27.4.5.

  9. rwaskiewicz commented on Jan 4, 2022

    @rwaskiewicz
    Member

    #3189 includes support for Jest 27, and will be included in the next minor release of Stencil (v2.13.0)

  10. rrdlpl commented on Jan 7, 2022

    @rrdlpl

    still fails on v27.4.7
    any solution for this?

  11. markcellus commented on Jan 7, 2022

    @markcellus

    Is it time to consider #3156 ? 😛

  12. rwaskiewicz commented on Jan 24, 2022

    @rwaskiewicz
    Member

    Hey folks, this should be fixed in v2.13.0 of Stencil, which was just released with Jest 27 support. I'm going to close this issue for now, but if this comes up again, please feel free to file a new ticket!

  13. markcellus commented on Jan 24, 2022

    @markcellus

    this should be fixed in v2.13.0

    Hey @rwaskiewicz I appreciate you all wanting to close out issues but your use of the word "should" indicates that you all havent verified that the issue is actually fixed. Issues shouldnt be closed out unless they've been verified by your team. Waiting for someone to have the issue and file another ticket does a big disservice to the people who are watching this issue because they won't know about the new ticket.

  14. rwaskiewicz commented on Jan 25, 2022

    @rwaskiewicz
    Member

    Hey @markcellus,

    Thanks for the feedback! By no means meant to cause confusion or indicate that the Stencil team hadn't verified this bug was not fixed.

    To clarify, the cause of this bug has been root caused and the fix was implemented over the course of two PRs - #3189 & #3171. The fix has been tested against Stencil projects both large and small by the team, and we are confident the v2.13.0 release fixes the issue described here.

    I'll look towards using less ambiguous language in these comments in the future.

    Thanks again!

  15. dcxn commented on Jan 26, 2022

    @dcxn

    Can confirm this fixed the issue on my pipelines. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions