i am using ngx-foundation version 1.0.8. and following as being demonstrated by instructor of ZURB at 15:00 of the video foundation tutorial
the instructor used a breakpoint mixin. but when i tried the code. sass compiler gave error
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined mixin.
╷
3 │ ┌ @include breakpoint(medium) {
4 │ │ height: 60rem;
5 │ └ }
i tried checking the settings and docs but wasn't able to find how to enable the breakpoint mixin.
here is my styles.scss file
// Global Variable Overrides
@import "./assets/scss/settings";
// Import Foundation for Sites
@import "~foundation-sites/scss/foundation";
// ---- Global styles ----
@include foundation-global-styles;
@include foundation-forms;
@include foundation-typography;
// ---- Grids (choose one) ----
@include foundation-xy-grid-classes;
// @include foundation-grid;
// @include foundation-flex-grid;
// Comment out the Foundation Components that you're not using!!!!!!!!!!!!!!!!!!!
// ---- Generic components ----
@include foundation-button;
@include foundation-button-group;
@include foundation-close-button;
@include foundation-label;
@include foundation-progress-bar;
@include foundation-slider;
@include foundation-switch;
@include foundation-table;
// ---- Basic components ----
@include foundation-badge;
@include foundation-breadcrumbs;
@include foundation-callout;
@include foundation-card;
@include foundation-dropdown;
@include foundation-pagination;
@include foundation-tooltip;
// ---- Containers ----
@include foundation-accordion;
@include foundation-media-object;
@include foundation-orbit;
@include foundation-responsive-embed;
@include foundation-tabs;
@include foundation-thumbnail;
// ---- Menu-based containers ----
@include foundation-menu;
@include foundation-menu-icon;
@include foundation-accordion-menu;
@include foundation-drilldown-menu;
@include foundation-dropdown-menu;
// ---- Layout components ----
@include foundation-off-canvas;
@include foundation-reveal;
@include foundation-sticky;
@include foundation-title-bar;
@include foundation-top-bar;
// ---- Helpers ----
@include foundation-float-classes;
@include foundation-flex-classes;
@include foundation-visibility-classes;
// @include foundation-prototype-classes;
// Motion UI Sass Library
@import "~motion-ui/src/motion-ui";
@include motion-ui-transitions;
@include motion-ui-animations;
// Import Angular ngx-foundation Framework Added Styles
@import "~ngx-foundation/assets/scss/main";
// Global Overrides & Added Styles
@import "./assets/scss/global";
i solved this issue as i had to import the settings.scss file too in the component scss file.
or either we can use @import or new scss syntax @use
settings.scss is the file where all the variables are defined by ngx-foundation.
there is also one fallback method of obtaining the same result as taken from foundation-docs