scss-bundle icon indicating copy to clipboard operation
scss-bundle copied to clipboard

Bundler throws get$iterator error

Open benzmarkus opened this issue 5 years ago • 3 comments

running the bundler results into error. With version v2.5.1 the bundler works.

[14:12:12] erro: There is an error in your styles: [14:12:12] erro: NoSuchMethodError: method not found: 'get$iterator' (J.getInterceptor$ax(...).get$iterator is not a function) on line (undefined, undefined)

To Reproduce create a scss file with the following content =================== content start =================== @import "~@angular/material/theming"; @import "palette";

// Include non-theme styles for core. @include mat-core();

// Define a theme. $primary: mat-palette($mat-liebherr-palette); $accent: mat-palette($mat-grey, A200, A100, A400); $warn: mat-palette($mat-deep-orange); $theme: mat-light-theme($primary, $accent, $warn);

// Include all theme styles for the components. @include angular-material-theme($theme); =================== content end ===================

Run the bundler and the error appears

Expected behavior success

Package version: v3.1.1 Node version: v13.12.0 OS: Windows

benzmarkus avatar May 12 '20 12:05 benzmarkus

I just had the same problem when upgrading from 2.5.1 to the latest 3.1 version.

Turns out, that the includePaths option was pretty much string|string[] in 2.5.1 but is now only string[]. This means, you have to have your includePaths configured as an array.

A better error message would have helped, but apart from that, I guess the ticket can be closed.

pfeigl avatar Dec 16 '20 15:12 pfeigl

I can confirm what @pfeigl said about the array, I have faced this issue and it appeared that it is includePaths should be an array, and I think we should close this issue if it's solved.

hamzahsn avatar Jun 16 '21 03:06 hamzahsn

@pfeigl has the correct solution, this can probably be closed

griest024 avatar Mar 14 '22 19:03 griest024