Skip to content

ModuleNotFoundError: Could not find module in path: '<path/file>' relative to '<path/file>' #6172

@fpasquet

Description

@fpasquet

Description of the problem

import { renderHook, act } from "@testing-library/react-hooks";

causes error:

ModuleNotFoundError: Could not find module in path: '@testing-library/react-hooks/lib/dom/pure' relative to '/node_modules/@testing-library/react-hooks/lib/pure.js'

How has this issue affected you? What are you trying to accomplish?

Prevents application from loading in codesandbox so that React Test Library support cannot help with an issue I have with testing.

Link to sandbox: link (optional)

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