You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn install
cd zones/home
npm run dev
(Notice nested style evaluation error when the linaria syntax is completely valid)
go to pages/index.js
comment shared/Button/Button
uncomment ../Components/Button
Error completely vanishes when its that exact same code within the same workspace.
Hoping you guys can get back to me on this tried to make reproduction as lean as humanly possible whilst simulating my problem.
EDIT: Sorry don't want to waste time in your investigation but just want to reiterate this problem only appears when importing linaria components/css that used nested selectors + use imported variable constants in a workspace monorepo... must have something to do with the evaluation
The text was updated successfully, but these errors were encountered:
Fixed. After 10+ hours trying to to different setups using yarn/npm/babel-module-resolver plugins finally after taking a break and going back to the docs the solution was right there. ignore: /node_modules[\/\\](?!shared)/, in next.config.js linaria/loader
yarn dev
works.
Updated with repo with the working code for those who stumble across this looking for answers on how to setup mono repo + nextjs + linaria.
Environment
windows (10)
linaria 1.3.1
NextJS (latest)
Description
Linaria ceases to be able to evaluate expressions IE nested selectors, and referencing constants in other files in another workspace in a monorepo.
Reproducible Demo
https://github.com/ShanonJackson/linariamono
Instructions
yarn install
cd zones/home
npm run dev
(Notice nested style evaluation error when the linaria syntax is completely valid)
go to pages/index.js
comment shared/Button/Button
uncomment ../Components/Button
Error completely vanishes when its that exact same code within the same workspace.
@satya164
Hoping you guys can get back to me on this tried to make reproduction as lean as humanly possible whilst simulating my problem.
EDIT: Sorry don't want to waste time in your investigation but just want to reiterate this problem only appears when importing linaria components/css that used nested selectors + use imported variable constants in a workspace monorepo... must have something to do with the evaluation
The text was updated successfully, but these errors were encountered: