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

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

Closed
goulu opened this issue Jun 28, 2021 · 15 comments
Closed

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

goulu opened this issue Jun 28, 2021 · 15 comments

Comments

@goulu
Copy link

goulu commented Jun 28, 2021

Stencil version:
(with jest and jest-cli)

+-- @ionic/core@5.6.10
| +-- @stencil/core@2.6.0  deduped
| `-- ionicons@5.5.2
|   `-- @stencil/core@2.6.0  deduped
+-- @stencil/core@2.6.0
+-- jest@27.0.5
| `-- jest-cli@27.0.5  deduped
`-- jest-cli@27.0.5

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 ...)

@ionitron-bot ionitron-bot bot added the triage label Jun 28, 2021
@splitinfinities
Copy link
Contributor

Will be solved with #2980

@goulu
Copy link
Author

goulu commented Aug 18, 2021

just tested with
+-- @ionic/core@5.6.13 | +-- @stencil/core@2.6.0 | -- ionicons@5.5.3
| -- @stencil/core@2.6.0 deduped +-- jest-cli@27.0.6 +-- jest@27.0.6 | -- jest-cli@27.0.6 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 git@github.com:ionic-team/stencil.git#STENCIL-17-upgrade-jest ?

@splitinfinities
Copy link
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.

@sforner405
Copy link

sforner405 commented Oct 7, 2021

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

@bjankord
Copy link
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

@raphzandrade
Copy link

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

@dkhir
Copy link

dkhir commented Nov 3, 2021

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

akki-jat added a commit to akki-jat/one-for-all-ui that referenced this issue Dec 5, 2021
akki-jat added a commit to akki-jat/one-for-all-ui that referenced this issue Dec 5, 2021
* feat(DarkShadow): scroll support for overflow body

* chore: bump library version

* chore(jest): downgrade to 26.6.3

ionic-team/stencil#2942
@dcxn
Copy link

dcxn commented Dec 23, 2021

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

@rwaskiewicz
Copy link
Contributor

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

@rrdlpl
Copy link

rrdlpl commented Jan 7, 2022

still fails on v27.4.7
any solution for this?

@markcellus
Copy link

Is it time to consider #3156 ? 😛

@rwaskiewicz
Copy link
Contributor

rwaskiewicz commented Jan 24, 2022

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!

@markcellus
Copy link

markcellus commented Jan 24, 2022

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.

@rwaskiewicz
Copy link
Contributor

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!

@dcxn
Copy link

dcxn commented Jan 26, 2022

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants