What doesn't work
Currently when trying to use this module in a Next.js application, I get an error that says Global CSS cannot be imported from within node_modules
More about the Next.js Error
Global CSS cannot be imported from within node_modules
Temporary workaround
I managed to create a workaround in my own project by changing your package.json "main" to export dist/lib/tui-wrapper.js instead of dist/index.js AND by using a "dynamic" import in my Next.js app.
import dynamic from 'next/dynamic';
const DynamicDonut = dynamic(() => import('react-donut'), { ssr: false });
What doesn't work
Currently when trying to use this module in a Next.js application, I get an error that says
Global CSS cannot be imported from within node_modulesMore about the Next.js Error
Global CSS cannot be imported from within node_modules
Temporary workaround
I managed to create a workaround in my own project by changing your package.json "main" to export
dist/lib/tui-wrapper.jsinstead ofdist/index.jsAND by using a "dynamic" import in my Next.js app.