427 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
82
views
Module not found: TypeError: Cannot read properties of undefined (reading 'tap'), The loader "./.component.scss" didn't return a string
I recently upgraded a microfrontend project built with Single-SPA and Angular from version 13 to Angular 18. After the migration, I noticed that the styles are completely broken or not loading as ...
0
votes
1
answer
263
views
sass error - Angular 19 upgrading from 17
I've upgraded application 17.3.1 to 19.2.6
I'm seeing below errors
./src/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Undefined function.
╷
14 │ $abc-primary:...
1
vote
0
answers
241
views
Facing issue of Can't find stylesheet to import when using webpack and sass loader
In our original setup of react + webpack, when running npm start we are facing "Can't find stylesheet to import" issue. But this happens only in Windows and not in MacOS.
To replicate this ...
0
votes
1
answer
774
views
Undefined @mixin after updating sass-loader and sass to the latest versions in React TS
I have the following issue when running command npm run build in my React TS app
ERROR in ./src/main/webapp/app/app.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js)...
1
vote
1
answer
218
views
Webpack sass-loader not generating correct source maps
I have a webpack config which contains sass-loader. When i remove the sass-loader i can see properly generated source maps. But when i add sass-loader back sourcemaps are broken.
entry: {
...
0
votes
0
answers
113
views
Upgrading Angular v11 to v12 getting SassError on ng serve
I upgraded my Angular app from 11 to 12.
I used the commands:
1: ng update @angular/core@12 @angular/cli@12 --force
2: ng update @angular/cdk@12 @angular/material@12 --force
I've encountered some ...
0
votes
1
answer
174
views
error after upgrading from angular 12 to angular 15
i'm upgrading an angular project from angular 12 to 15.
after doing all the necessary steps, i still get this error after building:
knowing that i already removed all the ~ from the css imports and ...
1
vote
1
answer
2k
views
Angular 17 upgrade Module build failed (from ./node_modules/sass-loader/dist/cjs.js): Can't find stylesheet to import
./src/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Can't find stylesheet to import.
` @import '@angular/material/theming';
src\app\shared\_shared.theme....
1
vote
0
answers
69
views
How could I profile a sass-loader compilation?
I'm using embedded-sass in an Angular custom webpack monorepo. One of my libraries with sass takes a significant amount of time just in sass-loader during the build and I'd like to figure out what I ...
1
vote
3
answers
1k
views
Angular modules are not taking global styles and scss variables
In my angular app i have src/styles.scss
@import "./styles/fonts";
@import "./styles/variables.scss";
and in src/styls/variables.scss
$color-brand-darker: #2d323e;
$color-brand-...
0
votes
1
answer
311
views
How can I prevent minify of CSS in Production using WebPack?
This may seem like a strange request but I am working on a site in HubSpot which will automatically minify my CSS and JS files for me before serving them to the browser.
I do my development using SCSS ...
1
vote
0
answers
227
views
Unexpected character '@' (1:0): @charset "UTF-8"
After upgrading Angular from version 11 to 17, I'm encountering the following error:
File was processed with these loaders:
* ./node_modules/resolve-url-loader/index.js
* ./node_modules/sass-loader/...
3
votes
1
answer
2k
views
sass-loader / bootstrap: Can't find stylesheet to import
After upgrading my Angular application from version 12 to version 17, I encountered the following error related to Sass imports when trying to build the project:
./src/app/shared/styles/frameworks/...
1
vote
0
answers
319
views
Storybook 7 Sass-Loader Undefined Variable Issue
I'm building a React component library with Storybook 7 and TypeScript. I have my Storybook addon-styling-webpack in .storybook/main.ts configured to load scss resources with sass-resource-loader. ...
0
votes
1
answer
2k
views
React Module Error sass-loader and type-error resolve-url-loader
I wanted to learn more React in general and because I need it for university project now. I got 2 projects from a friend who is a decent developer but I can not run them on my computer without any ...