Issue with scss imports in npm workspaces #2755
Unanswered
Nevinia210
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
recently I started to work with updating Lerna from version 3.22.1 to 8.1.2 in our solution. In Lerna documentation I read that I should use package manager workspaces (npm in my case).
First I tried it with some "blank" solution and even there I'm still facing issues with imports in scss file:
file path: Monorepo.Poc/Solution1/src/helloWorld/components/HelloWorls.module.scss
error:
Is there some way how gulp could be configured to work with npm workspaces?
Thanks for your answers in advance
Expected Behavior
Solution will build without errors:
@import '~@fluentui/react/dist/sass/References.scss';
will workSteps To Reproduce
What is your solution name? (solution-1) - press enter
Which type of client-side component to create? (Use arrow keys) - select WebPart and press enter
What is your Web part name? (HelloWorld) - press enter
Which template would you like to use? - select React and press enter
npm install
in folder Monorepo.Pocnpm run build --workspaces
in folder Monorepo.PocEnvironment
gulpfile.js
Beta Was this translation helpful? Give feedback.
All reactions