Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

Missing estraverse dependency #120

Closed
@cdfa

Description

@cdfa

Hi, I tried this project today and at first glance it seems to work very well. However, when I tried installing the dependencies of the example project with pnpm, I got this error on compilation:

/src/index.js
Line 0:  Parsing error: Cannot find module 'estraverse'

However, there is no such line in examples/src/index.js.
This probably means one of the (deep) dependencies is missing estraverse as a dependency in their package.json, but they're relying on it being installed in the node_modules folder because it's a dependency of one of their dependencies. According to npm's specification, only direct dependencies have to be installed in the node_modules folder, which is exactly what pnpm does.

Sadly, the error message doesn't give me any idea of what package might be missing the estraverse dependency, which is where I hope someone can help out.

For anyone who runs into this and doesn't know, the issue can be resolved by using pnpm's --shamefully-flatten flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions