aitor
September 18, 2022, 12:07pm
1
"@roots/bud": "6.4.0",
"@roots/bud-eslint": "^6.4.0",
"@roots/bud-sass": "^6.4.0",
"@roots/bud-tailwindcss": "6.4.0",
"@roots/eslint-config": "^6.4.0",
"@roots/sage": "6.4.0"
Iβve installed bud-sass. When I change app.css
and editor.css
names to app.scss
and editor.scss
I get this error when yarn build (twice. One for each file):
Error: resolve-url-loader: webpack misconfiguration
webpack or the upstream loader did not supply a source-map
1 Like
joshf
September 18, 2022, 4:25pm
2
Whatβs your .stylelintrc
look like? Iβm using a similar setup with this:
{
"extends": [
"@roots/bud-sass/stylelint-config",
"@roots/sage/stylelint-config",
"@roots/bud-tailwindcss/stylelint-config/scss"
],
"rules": {
"declaration-bang-space-before": null
}
}
The order in which the configs are loaded matters, and this is what got it up and running for me.
1 Like
aitor
September 19, 2022, 6:08am
3
Same here
{
"extends": [
"@roots/bud-sass/stylelint-config",
"@roots/sage/stylelint-config",
"@roots/bud-tailwindcss/stylelint-config/scss"
],
"rules": {
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true,
"no-eol-whitespace": null,
"block-closing-brace-newline-before": null,
"block-no-empty": null,
"declaration-block-no-redundant-longhand-properties": null
}
}
aitor
September 19, 2022, 1:25pm
4
Provisional fix
app.hooks.action(`build.before`, async app =>
app.build.items.sass.setOptions({ sourceMap: true })
);
opened 07:52AM - 19 Sep 22 UTC
bug
### Agreement
- [X] This is not a duplicate of an existing issue
- [X] I hav⦠e read the [guidelines for Contributing to Roots Projects](https://github.com/roots/.github/blob/master/CONTRIBUTING.md)
- [X] This is not a personal support request that should be posted on the [Roots Discourse](https://discourse.roots.io/) community
### Describe the issue
After install bud sass in Bedrock/Sage 10 I get this warning for each SCSS file when I run yarn build or yarn dev:
```
Error: resolve-url-loader: webpack misconfiguration
webpack or the upstream loader did not supply a source-map
```
### Expected Behavior
No errors expected
### Actual Behavior
After install bud sass in Bedrock/Sage 10 I get this warning for each SCSS file when I run yarn build or yarn dev:
```
Error: resolve-url-loader: webpack misconfiguration
webpack or the upstream loader did not supply a source-map
```
### Steps To Reproduce
1. Install Bedrock
2. Install Acorn
3. Install Sage
4. yarn add @roots/bud-sass --dev (Installed 6.0.4)
5. Rename other @roots package versions from `6.3.3` to `6.4.0` in package.json
6. Remove node_modules
7. yarn
8. Rename resources/styles from `*.css` to `*.scss`
9. yarn build (output error)
### version
6.4.0
### What package manager are you using?
yarn
### version
1.22.19
### Logs
```zsh
β sage git:(main) β yarn build
yarn run v1.22.19
$ bud build
β sage ./public [be3d0a7b60c5a7f0e6e2]
β
ββ β warning
β Error: resolve-url-loader: webpack misconfiguration
β webpack or the upstream loader did not supply a source-map
β
ββ β warning
β Error: resolve-url-loader: webpack misconfiguration
β webpack or the upstream loader did not supply a source-map
β
ββ entrypoints
β ββ app
β β ββ js/runtime.8eb29a.js 1.02 kB
β β ββ js/575.baac18.js 232 bytes
β β ββ css/app.ed6516.css 6.29 kB
β β ββ js/app.735562.js 224 bytes
β ββ editor
β ββ js/runtime.8eb29a.js 1.02 kB
β ββ js/575.baac18.js 232 bytes
β ββ css/editor.31d6cf.css
β ββ js/editor.6413f2.js 376 bytes
β
ββ assets
β ββ images/.gitkeep.31d6cf
β
β
ββ compiled 26 modules in 2s 17ms
```
### Configuration
```zsh
// @ts-check
/**
* Build configuration
*
* @see {@link https://bud.js.org/guides/getting-started/configure}
* @param {import('@roots/bud').Bud} app
*/
export default async (app) => {
app
/**
* Application entrypoints
*/
.entry({
app: ["@scripts/app", "@styles/app"],
editor: ["@scripts/editor", "@styles/editor"],
})
/**
* Directory contents to be included in the compilation
*/
.assets(["images"])
/**
* Matched files trigger a page reload when modified
*/
.watch(["resources/views/**/*", "app/**/*"])
/**
* Proxy origin (`WP_HOME`)
*/
.proxy("http://nomanisanisland.test")
/**
* Development origin
*/
.serve("http://0.0.0.0:3000")
/**
* URI of the `public` directory
*/
.setPublicPath("/app/themes/sage/public/");
};
```
### Relevant .budfiles
_No response_
1 Like