question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Syntax Error: SassError` in Quasar devServer with Yarn workspace

See original GitHub issue

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:

  1. yarn init
  2. git init
  3. git submodule add -n web [quasarProjectRepositoryUrl] packages/web

this is a new quasar project with windicss configured via webpack, you can check out here https://github.com/iamlazy-dev/app-web

  1. add workspaces fields in package.json in root project with ["packages/*"] and set private fields to true
  2. yarn install
  3. add script yarn workspace [packageName] named “web”
  4. execute yarn web quasar dev to start the devServer

Expected behavior COMPILATION ERROR is gone

Screenshots image

Platform (please complete the following information): Quasar Version: 2 @quasar/app Version: 3.0.0

Quasar mode:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX

Tested on:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
anhzfcommented, Jul 26, 2021

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

1reaction
hawkeye64commented, Jul 25, 2021

@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 postcss-rtlcss) and therefore, by the time it’s passed to sass, the comments have not been stripped off and sass chokes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR in Cannot find module 'node-sass' - Stack Overflow
Config: macOS High Sierra, version 10.13.2, node:v8.1.2 npm:5.0.3 When I run npm start in my angularjs project I get this error:
Read more >
Problem with creating new project , dev not running
Hi all , i made installation ,see bellow, if i run dev nothing happend. Please help , im newcomer in quasar . Installation...
Read more >
windows cannot find module 'node-sass' Code Example
Answers related to “windows cannot find module 'node-sass'”. npm sass install · node sass install error · node-sass: command not found.
Read more >
storybookjs/storybook (Raised $170.00) - Issuehunt
[Bug]: Support for nrwl/workspace 15.3+ for Angular 15 ... npm run build-storybook gives SyntaxError: Invalid regular expression: /%npm_config_"errors" ...
Read more >
W3layouts cms exploit - Weebly
Then determine if the message contains the hello string. a tag a tag shows ... 'node-sass' Error: Module 'webpack-dev-server' can't find the symbol...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found