Error using styled
method from linaria/react
along with NextJS and Material UI
#1412
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
platform: next.js 🛠️
Issue related to next.js
Environment
6.2.0
20.11.0
Linux Ubuntu
Description
I was trying to set up Linaria in my project and it worked pretty well until I tried to use the
styled
method explained below. It started to throw a compile error because some exception thrown on this file:node_modules/@wyw-in-js/transform/lib/module.js
. If I comment the lines223
and224
it works fine, so I was wondering if it's crashing the application because of the attempt to format some warning?Reproducible Demo
You can try to use Material with the Linaria setup in a Next 13 application and try to pass any Material component to the
styled
method oflinaria/react
.The text was updated successfully, but these errors were encountered: