martpie / next-transpile-modules

Next.js plugin to transpile code from node_modules. Please see: https://github.com/martpie/next-transpile-modules/issues/291
MIT License
1.13k stars 85 forks source link

How to include nested package when using pnpm? #288

Closed viewerw closed 1 year ago

viewerw commented 1 year ago

I try write like this:


const withTM = require('next-transpile-modules')(['styleguide/node_modules/lodash-es']);

// ...

and show error from here https://github.com/martpie/next-transpile-modules/blob/master/src/next-transpile-modules.js#L129
so nested package does not work with pnpm?
martpie commented 1 year ago

Please follow the issue template, not much I can do with these information :)