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

How to include nested package when using pnpm? #298

Open
2 tasks done
linwu-hi opened this issue Aug 15, 2023 · 0 comments
Open
2 tasks done

How to include nested package when using pnpm? #298

linwu-hi opened this issue Aug 15, 2023 · 0 comments

Comments

@linwu-hi
Copy link

  • 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.

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

1 participant