Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

How to include nested package when using pnpm?  #298

@linwu-hi

Description

@linwu-hi
  • I HAVE READ THE FAQ AND MY PROBLEM WAS NOT DESCRIBED THERE
  • I WILL GIVE 10$ TO CHARITY IF MY SOLUTION WAS ACTUALLY IN THE README/FAQ

Are you trying to transpile a local package or an npm package?
If an npm package, which one?

ant-mobile

Describe the bug
A clear and concise description of what the bug is (please include logs from your terminal with debug enabled).

const withTM = require('next-transpile-modules')(['antd-mobile']);

To Reproduce
Steps to reproduce the behavior (a reproduction is even better):

ant-mobile includes the third-party package @react-spring/web, but next-transpile-modules did not find the correct package address under the management of the pnpm package, so it was not compiled, and Npm/Yarn would not

Expected behavior
A clear and concise description of what you expected to happen.

Setup

  • Next.js version:

  • next-transpile-modules version:

  • Node.js version:

  • npm/yarn version:

  • Operating System:

  • Webpack 4 or 5:

    "next": "^12.3.3",
    "pnpm": 8.5.1

Debug logs (optiona)
If the bug is related to compilation issues, please include a debug log (cf. README).

Additional context
Add any other context about the problem here.

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