next-transpile-modules
next-transpile-modules copied to clipboard
How to include nested package when using pnpm?
- [x] I HAVE READ THE FAQ AND MY PROBLEM WAS NOT DESCRIBED THERE
- [x] 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.