Fresh install of Sage Roots 10 and first time using it, having used Sage 8 and 9 plenty over the last few years.
I’m trying to set up support for SCSS and have installed bud-postcss and bud-sass (versions 6.3.1) and have updated by bud.js to the same version, but on running yarn build
I’m getting an error that
ModuleNotFoundError: Module not found: Error: Can't resolve '@scripts/editor.js'
Those files obviously exist and I could build prior to install the new packages and the update. Am I missing something with the update process?
Dependancies in package.json:
"devDependencies": {
"@roots/bud": "^6.3.1",
"@roots/bud-postcss": "^6.3.1",
"@roots/bud-sass": "^6.3.1",
"@roots/sage": "5.8.7"
}
bud.config.js:
/**
* @typedef {import('@roots/bud').Bud} bud
*
* @param {bud} app
*/
module.exports = async (app) => {
app
/**
* Application entrypoints
*
* Paths are relative to your resources directory
*/
.entry({
app: ['@scripts/app', '@styles/app'],
editor: ['@scripts/editor', '@styles/editor'],
})
/**
* These files should be processed as part of the build
* even if they are not explicitly imported in application assets.
*/
.assets('images')
/**
* These files will trigger a full page reload
* when modified.
*/
.watch('resources/views/**/*', 'app/**/*')
/**
* Target URL to be proxied by the dev server.
*
* This should be the URL you use to visit your local development server.
*/
.proxy('http://localhost')
/**
* Development URL to be used in the browser.
*/
.serve('http://0.0.0.0:3000');
};