linaria icon indicating copy to clipboard operation
linaria copied to clipboard

Named export 'styled' not found. The requested module '@linaria/react' is a CommonJS module

Open RanolP opened this issue 3 years ago • 0 comments

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

RanolP avatar Aug 09 '22 14:08 RanolP