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

Need more information on how to use transpile module to include a complete module #207

Closed amitsingh-quotient closed 3 years ago

amitsingh-quotient commented 3 years ago

I tried this next-transpile-modules approach used here to integrate module from react JS to next JS. I am successfully able to transpile modules. But i get run time error.

I am actually transpiling the whole package in my next JS. which works fine. But i am getting this error. Can you help me.

This is where i import shopping list from another project using npm link. and use transpile-module to resolve all dependencies.

Screenshot 2021-05-13 at 8 51 01 PM

Error in next JS after the import.

Screenshot 2021-05-13 at 8 49 28 PM

This is package file of shopping-list module.

Screenshot 2021-05-13 at 8 50 03 PM

This is index.js which is imported as shopping-list.

Screenshot 2021-05-13 at 8 50 20 PM
martpie commented 3 years ago

Please follow the bug issue template.