This package ships sass and the files use the new sass module system. It's perhaps that sass or sass-loader is out of date, but I'm not sure. It could be something else
Package name
@carbon/styles
Entire error (stringified) I see in my browser console
/tmp/tmp-build/packages/build-@carbonstyles-yy6/node_modules/@carbon/styles/index.scss Module build failed (from ./node_modules/package-build-stats/node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/package-build-stats/node_modules/sass-loader/dist/cjs.js): SassError: Can't find stylesheet to import. ╷ 70 │ ┌ @forward '@carbon/grid/scss/config' hide $prefix, 71 │ │ $flex-grid-columns with ( 72 │ │ $prefix: $prefix, 73 │ │ $flex-grid-columns: $flex-grid-columns 74 │ │ ); │ └───^ ╵ /tmp/tmp-build/packages/build-@carbonstyles-yy6/node_modules/@carbon/styles/scss/_config.scss 70:1 @forward /tmp/tmp-build/packages/build-@carbonstyles-yy6/node_modules/@carbon/styles/index.scss 8:1 root stylesheet at /var/www/bundlephobia/node_modules/package-build-stats/node_modules/webpack/lib/NormalModule.js:316:20 at /var/www/bundlephobia/node_modules/loader-runner/lib/LoaderRunner.js:367:11 at /var/www/bundlephobia/node_modules/loader-runner/lib/LoaderRunner.js:233:18 at context.callback (/var/www/bundlephobia/node_modules/loader-runner/lib/LoaderRunner.js:111:13) at /var/www/bundlephobia/node_modules/package-build-stats/node_modules/sass-loader/dist/index.js:73:7 at Function.call$2 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:99628:16) at render_closure1.call$2 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:85048:12) at _RootZone.runBinary$3$3 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:29643:18) at _FutureListener.handleError$1 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:28163:21) at _Future__propagateToListeners_handleError.call$0 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:28470:49) at Object._Future__propagateToListeners (/var/www/bundlephobia/node_modules/sass/sass.dart.js:3899:77) at _Future._completeError$2 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:28316:9) at _AsyncAwaitCompleter.completeError$2 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:27964:12) at Object._asyncRethrow (/var/www/bundlephobia/node_modules/sass/sass.dart.js:3701:17) at /var/www/bundlephobia/node_modules/sass/sass.dart.js:19854:20 at _wrapJsFunctionForAsync_closure.$protected (/var/www/bundlephobia/node_modules/sass/sass.dart.js:3726:15) @ /tmp/tmp-build/packages/build-@carbonstyles-yy6/index.js 1:10-35
Type
BuildError Failed to build this package.
This package ships sass and the files use the new sass module system. It's perhaps that
sass
orsass-loader
is out of date, but I'm not sure. It could be something elsePackage name
@carbon/styles
Entire error (stringified) I see in my browser console
/tmp/tmp-build/packages/build-@carbonstyles-yy6/node_modules/@carbon/styles/index.scss Module build failed (from ./node_modules/package-build-stats/node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/package-build-stats/node_modules/sass-loader/dist/cjs.js): SassError: Can't find stylesheet to import. ╷ 70 │ ┌ @forward '@carbon/grid/scss/config' hide $prefix, 71 │ │ $flex-grid-columns with ( 72 │ │ $prefix: $prefix, 73 │ │ $flex-grid-columns: $flex-grid-columns 74 │ │ ); │ └───^ ╵ /tmp/tmp-build/packages/build-@carbonstyles-yy6/node_modules/@carbon/styles/scss/_config.scss 70:1 @forward /tmp/tmp-build/packages/build-@carbonstyles-yy6/node_modules/@carbon/styles/index.scss 8:1 root stylesheet at /var/www/bundlephobia/node_modules/package-build-stats/node_modules/webpack/lib/NormalModule.js:316:20 at /var/www/bundlephobia/node_modules/loader-runner/lib/LoaderRunner.js:367:11 at /var/www/bundlephobia/node_modules/loader-runner/lib/LoaderRunner.js:233:18 at context.callback (/var/www/bundlephobia/node_modules/loader-runner/lib/LoaderRunner.js:111:13) at /var/www/bundlephobia/node_modules/package-build-stats/node_modules/sass-loader/dist/index.js:73:7 at Function.call$2 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:99628:16) at render_closure1.call$2 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:85048:12) at _RootZone.runBinary$3$3 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:29643:18) at _FutureListener.handleError$1 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:28163:21) at _Future__propagateToListeners_handleError.call$0 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:28470:49) at Object._Future__propagateToListeners (/var/www/bundlephobia/node_modules/sass/sass.dart.js:3899:77) at _Future._completeError$2 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:28316:9) at _AsyncAwaitCompleter.completeError$2 (/var/www/bundlephobia/node_modules/sass/sass.dart.js:27964:12) at Object._asyncRethrow (/var/www/bundlephobia/node_modules/sass/sass.dart.js:3701:17) at /var/www/bundlephobia/node_modules/sass/sass.dart.js:19854:20 at _wrapJsFunctionForAsync_closure.$protected (/var/www/bundlephobia/node_modules/sass/sass.dart.js:3726:15) @ /tmp/tmp-build/packages/build-@carbonstyles-yy6/index.js 1:10-35