Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: remix │ |- TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css" node_modules/katex/dist/katex.min.css #432

Open
bakikucukcakiroglu opened this issue Aug 1, 2024 · 3 comments · May be fixed by #438

Comments

@bakikucukcakiroglu
Copy link

Provide environment information

System:
OS: macOS 14.5
CPU: (11) arm64 Apple M3 Pro
Memory: 172.17 MB / 18.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
pnpm: 9.6.0 - ~/.nvm/versions/node/v20.15.1/bin/pnpm

Describe the bug

I got this error when I try to use novel in my remix project. I used the same code in my next project and everything was perfect.

13:12:39 │            remix │ 1:12:39 PM [vite] Error when evaluating SSR module
/app/routes/app.products.$productId.editor/route.tsx: failed to import "novel/extensions"
13:12:39 │            remix │ |- TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css" for

Link to reproduction

To reproduce

Additional information

No response

@elianiva
Copy link

i think this is caused be the css import specified here:

import 'katex/dist/katex.min.css';

which gets bundled when it's built, and node tries to import a .css file when doing ssr

@someguy9
Copy link

Same issue here, not sure how to resolve

@bakikucukcakiroglu
Copy link
Author

It looks like the library is dead. I wouldn't recommend using it for a production level work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants