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

Cannot find module '@hapi/hoek/assert' #388

Closed
andreynovikov95 opened this issue Mar 18, 2023 · 3 comments
Closed

Cannot find module '@hapi/hoek/assert' #388

andreynovikov95 opened this issue Mar 18, 2023 · 3 comments
Labels
support Questions, discussions, and general support

Comments

@andreynovikov95
Copy link

  • is this issue currently blocking your project?: yes
  • is this issue affecting a production system?: yes

Context

  • node version: 14.17.2
  • module version with issue: hapi v21.3.0, @hapi/h2o2 v10.0.1, hapi/hoek v11.0.2, hapi/wreck v18.0.1, @hapi/boom v10.0.1, hapi/crumb v9.0.1
  • last module version without issue: hapi 20.3.0
  • environment (e.g. node, browser, native): node, jest-tests
  • used with (e.g. hapi application, another framework, standalone, ...): standalone
  • any other relevant information: pro

What are you trying to achieve or the steps to reproduce?

I'm trying to run previously written tests with the same functionality with hapi v21.3.0. Nothing is used from the checklist hapijs/hapi#4386.
Perhaps there is a problem in dependencies: types/hapi__h2o2 v10.0.1" > joi v17.7.0 > hapi/topo > v5.0.0 > hapi/hoek v10.0.0

What was the result you got?

Cannot find module '@hapi/hoek/assert' from 'node_modules/@hapi/validate/lib/index.js'

Require stack:
  node_modules/@hapi/validate/lib/index.js
  node_modules/@hapi/h2o2/lib/index.js

What result did you expect?

pass tests

@andreynovikov95 andreynovikov95 added the support Questions, discussions, and general support label Mar 18, 2023
@wspringer
Copy link

I have exactly the same issue

@hidalgofdz
Copy link

hidalgofdz commented Mar 28, 2023

I had exactly the same issue with jest. I solved by updating jest to 28. Seems like old jest versions didn't know how to parse the exports attribute from package.json

https://github.com/facebook/jest/releases/tag/v28.0.0

@andreynovikov95
Copy link
Author

I had exactly the same issue with jest. I solved by updating jest to 28. Seems like old jest versions didn't know how to parse the exports attribute from package.json

https://github.com/facebook/jest/releases/tag/v28.0.0

This solved the problem. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Questions, discussions, and general support
Projects
None yet
Development

No branches or pull requests

3 participants