linaria
linaria copied to clipboard
Named export 'styled' not found. The requested module '@linaria/react' is a CommonJS module
Environment
- Linaria version: "@linaria/react": "4.1.2", "@linaria/rollup": "4.1.2"
- Bundler (+ version): vite 3.0.4 with vite-plugin-ssr 0.4.18
- Node.js version: v18.7.0
- OS: Arch Linux
Description
I'm writing a frontend with an SSR server using ESM and recently wanted to use linaria. But the linaria packages cannot be imported as an ESM module in a Node ESM environment.
Reproducible Demo
RanolP/node-esm-linaria-repro, It does not use any bundler at all for concentrating to its root problem.
Related Issue
- #904