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

[heft] Cannot find module '@rushstack/terminal' #4532

Closed
leonitousconforti opened this issue Feb 22, 2024 · 1 comment
Closed

[heft] Cannot find module '@rushstack/terminal' #4532

leonitousconforti opened this issue Feb 22, 2024 · 1 comment

Comments

@leonitousconforti
Copy link

Summary

Upgraded to:

"@rushstack/heft": "0.65.3",
"@rushstack/heft-jest-plugin": "0.11.12",
"@rushstack/heft-lint-plugin": "0.3.12",
"@rushstack/heft-typescript-plugin": "0.3.12",
"@rushstack/heft-webpack5-plugin": "0.9.29",

linting + typescript + webpack tasks all complete fine, but jest plugin is not happy

[test:jest] Using Jest version 29.5.0
Determining test suites to run...[test:jest] Error: An error occurred while adding the reporter at path "/workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=n6k2ue4lp6ap7o3pnlbmjotjeu_@[email protected]_@[email protected]/node_modules/@rushstack/heft-jest-plugin/lib/HeftJestReporter.js".
[test:jest] Cannot find module '@rushstack/terminal'
[test:jest] Require stack:
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=n6k2ue4lp6ap7o3pnlbmjotjeu_@[email protected]_@[email protected]/node_modules/@rushstack/heft-jest-plugin/lib/HeftJestReporter.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/[email protected]/node_modules/jest-util/build/requireOrImportModule.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/[email protected]/node_modules/jest-util/build/index.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/[email protected]/node_modules/jest-resolve/build/resolver.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/[email protected]/node_modules/jest-resolve/build/index.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=n6k2ue4lp6ap7o3pnlbmjotjeu_@[email protected]_@[email protected]/node_modules/@rushstack/heft-jest-plugin/lib/JestPlugin.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=ox6odirr3wstbc5ukwnhm7ow6q_@[email protected]/node_modules/@rushstack/heft/lib/configuration/HeftPluginDefinition.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=ox6odirr3wstbc5ukwnhm7ow6q_@[email protected]/node_modules/@rushstack/heft/lib/configuration/HeftPluginConfiguration.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=ox6odirr3wstbc5ukwnhm7ow6q_@[email protected]/node_modules/@rushstack/heft/lib/pluginFramework/HeftLifecycle.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=ox6odirr3wstbc5ukwnhm7ow6q_@[email protected]/node_modules/@rushstack/heft/lib/pluginFramework/InternalHeftSession.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=ox6odirr3wstbc5ukwnhm7ow6q_@[email protected]/node_modules/@rushstack/heft/lib/cli/HeftCommandLineParser.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=ox6odirr3wstbc5ukwnhm7ow6q_@[email protected]/node_modules/@rushstack/heft/lib/start.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=ox6odirr3wstbc5ukwnhm7ow6q_@[email protected]/node_modules/@rushstack/heft/lib/startWithVersionSelector.js
[test:jest] - /workspaces/the-wireguard-effect/node_modules/.pnpm/@[email protected]_patch_hash=ox6odirr3wstbc5ukwnhm7ow6q_@[email protected]/node_modules/@rushstack/heft/bin/heft
 ---- test encountered an error (0.156s) ---- 

Repro steps

Expected result:

Actual result:

Details

For reference, my npmrc is:

hoist = false
hoist-pattern=
public-hoist-pattern=
auto-install-peers = false
strict-peer-dependencies = true

adding @rushstack/terminal as a dev dependency resolves this issue

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@rushstack/heft version? 0.65.3
Operating system? Linux devcontainer
Would you consider contributing a PR? sure?
Node.js version (node -v)? v20.11.1
@dmichon-msft
Copy link
Contributor

Fixed by #4535 .

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

2 participants