Open oe-josh-martin opened 1 month ago
You need to add transpilePackages to next.config.js
:
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ["@kt/pigmentcss"], // required for loading virtual node_modules
};
Perfect, thank you @siriwatknp!
Steps to reproduce
Basic app available here, it's not identical to the README example, but it does the same thing (exports a basic component for consumption in a different app).
I note that if I remove the
transformLibraries: ['@kt/pigmentcss']
declaration from thewithPigment
config the error goes away, but there are no styles applied (naturally).Current behavior
Expected behavior
No response
Context
No response
Your environment
Search keywords: global imported node_modules