-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Syntax Error: SassError
in Quasar devServer with Yarn workspace
#10172
Comments
Have you done any research on this or just want members of the team to do that for you? If you need faster service, the you should investigate a bit and let us know what you have found. While I don't specifically think this is a Quasar issue, searching for sass, sass-loader, webpack, yarn workspace, etc and some sort of correlation would have helped A LOT. I found these: The best I could figure is when in a yarn workspace (which I use all the time without issue) that uses a git sub-module, you have to |
In advance, I apologize and thank you so much to the quasar community especially to @hawkeye64. |
@anhzf .q-loading-bar
position: fixed
z-index: $z-max
transition: transform .5s cubic-bezier(0,0,.2,1), opacity .5s
background: $red
&--top
left: 0 #{"/* rtl:ignore */"}
right: 0 #{"/* rtl:ignore */"}
top: 0
width: 100%
&--bottom
left: 0 #{"/* rtl:ignore */"}
right: 0 #{"/* rtl:ignore */"}
bottom: 0
width: 100%
&--right
top: 0
bottom: 0
right: 0
height: 100%
&--left
top: 0
bottom: 0
left: 0
height: 100% This |
because of this, I think it's internal from quasar so I posted it here. as you can see too in my screenshot above the output provide me to the wrong line (694:14) when I check it, it's totally different line so I can't figure out what happens below is the screenshot of when I open that line one more, why it's not working in yarn workspaces |
This I don't know. I have about a dozen projects on the go that use yarn workspaces and don't have this issue. Does it work if you remove the yarn workspace info, delete all your node_modules folders and delete yarn.lock, and treat them as individual projects? Let's see if we can narrow this down. |
of course, I've repeated that reproduce step above three times |
@anhzf The only other thing I can see that I do differently is this:
|
yeah, this is because the yarn itself recommended to run everything via yarn,
I've to do this before, and it's not work |
I've tried some experiments, I do exactly the same as in reproducing step but with a new quasar project repository and it's fine without any error. the difference is, my old project is using WindiCSS webpack plugin as you can see in my quasar.config.js sorry, I'm new in the community, should I migrate this issue to WindiCSS instead? 😅 |
@anhzf If you can't get it to replicate on a new Quasar project, but it does happen when you add windicss, then yes. A bit more info/ammo... It appears behind the scenes that windicss is also processing the sass/scss, but they are not using an RTL preprocessor (quasar uses |
thank you @hawkeye64 for following these issues, there's a postcss plugin to use WindiCSS and no error at least at I posted this comment |
Had the same issue, fixed by adding the |
Describe the bug
So I've created a new yarn workspace as a step in reproduce but what I've got is
COMPILATION ERROR
To Reproduce
Steps to reproduce the behavior:
yarn init
git init
git submodule add -n web [quasarProjectRepositoryUrl] packages/web
workspaces
fields in package.json in root project with["packages/*"]
and setprivate
fields to trueyarn install
yarn workspace [packageName]
named "web"yarn web quasar dev
to start the devServerExpected behavior
COMPILATION ERROR is gone
Screenshots
![image](https://user-images.githubusercontent.com/36941633/126796571-f6ec0668-45f1-4a3e-b354-b82da69653d3.png)
Platform (please complete the following information):
Quasar Version: 2
@quasar/app Version: 3.0.0
Quasar mode:
Tested on:
OS:
Node: 14.17.0
NPM: 6.14.13
Yarn: 1.22.10
Browsers: -
iOS: -
Android: -
Electron: -
Additional context
monorepo with yarn workspaces, yarn without workspace its fine as well as npm
The text was updated successfully, but these errors were encountered: