Jirayu
1
Hi,
Anyone has any success changing builder in Sage 9 to Bud.js?
I installed these into devDep
"@roots/bud": "^6.6.2",
"@roots/bud-sass": "^6.6.4",
and here’s my bud.config.mjs
export default async bud => {
bud
.setPath({
'@src': 'resources/assets',
'@dist': 'dist',
})
.entry({
main: ['scripts/main.js', 'styles/main.scss']
})
.assets([
['images', 'images'],
['fonts', 'fonts'],
['icons', 'icons'],
])
}
When I run yarn bud build
(node 16) I got this error
Cannot read properties of undefined (reading 'toWebpack')[bud@6.6.2] [sage] › ✘ error exiting with code 1
I can’t find any reference to toWebpack
so now I’m stuck
Any idea?
This appears to be the same issue as this one: