Description
Here is what I get with npm run build:
> [email protected] build
> run-s --silent checkVersion lint build:production
node: 22.13.1
(node:45498) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use node --trace-deprecation ...
to show where the warning was created)
vite v6.3.5 building for production...
✓ 0 modules transformed.
✗ Build failed in 153ms
error during build:
[vite:css] [sass] An importer must have either canonicalize and load methods, or a findFileUrl method.
file: /my/path/wp-content/themes/flynt/assets/admin.scss
Error: An importer must have either canonicalize and load methods, or a findFileUrl method.
at Object._parseAsyncImporter (/my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:23528:19)
at compileStringAsync__closure0.call$1 (/my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:92501:16)
at Object.NullableExtension_andThen0 (/my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:31754:40)
at /my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:92467:35
at _wrapJsFunctionForAsync_closure.$protected (/my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:4946:15)
at _wrapJsFunctionForAsync_closure.call$2 (/my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:35978:12)
at Object._asyncStartSync (/my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:4910:20)
at compileStringAsync_closure.call$0 (/my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:92489:16)
at StaticClosure.compileStringAsync1 (/my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:23480:176)
at Object.Primitives_applyFunction (/my/path/wp-content/themes/flynt/node_modules/sass/sass.dart.js:2078:30)