Menu icon Foundation
Foundation 6 for Sites - NPM RUN BUILD - Can't find variable $ Error

I'm using Foundation 6 Sass compiler and when I run npm run build it fails on SCSS compile with the message "can't find variable $" Has anybody else ran into this problem and has anyone figured out a solution to this. It does compile the SCSS into CSS but the CSS generated doesn't style the site the same way it does with Foundation Watch. Primarily drop down menus and slick carousel. My custom SCSS is imported after all the Foundation SCSS in the apps.scss file.

npmbuildscsscompileerrorvariable

I'm using Foundation 6 Sass compiler and when I run npm run build it fails on SCSS compile with the message "can't find variable $" Has anybody else ran into this problem and has anyone figured out a solution to this. It does compile the SCSS into CSS but the CSS generated doesn't style the site the same way it does with Foundation Watch. Primarily drop down menus and slick carousel. My custom SCSS is imported after all the Foundation SCSS in the apps.scss file.