`Syntax Error: SassError` in Quasar devServer with Yarn workspace
See original GitHub issueDescribe 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
this is a new quasar project with windicss configured via webpack, you can check out here https://github.com/iamlazy-dev/app-web
- add
workspaces
fields in package.json in root project with["packages/*"]
and setprivate
fields to true yarn install
- add script
yarn workspace [packageName]
named “web” - execute
yarn web quasar dev
to start the devServer
Expected behavior COMPILATION ERROR is gone
Screenshots
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:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@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.