Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

NextJS fails to compile due to global CSS dependency in node modules #598

Closed
gavindoughtie opened this issue Dec 11, 2021 · 1 comment
Closed
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@gavindoughtie
Copy link

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
Include the rich markdown editor component in a component rendered server-side by nextjs

Expected behavior
A clear and concise description of what you expected to happen.

Version
12.0.0-beta.0
(using with React 18 beta)

Screenshots
If applicable, add screenshots or videos to help explain your problem.

./node_modules/katex/dist/katex.min.css Global CSS cannot be imported from within node_modules. Read more: https://nextjs.org/docs/messages/css-npm Location: node_modules/rich-markdown-editor/dist/nodes/Math.js

Desktop (please complete the following information):

  • OS: [e.g. iOS]
    OSX
  • Browser [e.g. chrome, safari]
    Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]
@gavindoughtie gavindoughtie added the bug Something isn't working label Dec 11, 2021
@tommoor
Copy link
Member

tommoor commented Dec 11, 2021

Please see this issue: #303

The component does not support SSR at this time so you should ensure window is available.

@tommoor tommoor closed this as completed Dec 11, 2021
@tommoor tommoor added the duplicate This issue or pull request already exists label Dec 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants