Skip to content

Does not work with Next.js #12

Description

@devcshort

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 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions