Foundation-sites: Argument `$map` of `map-has-key($map, $key)` must be a map

Created on 8 May 2017  ·  3Comments  ·  Source: foundation/foundation-sites

I've just updated one of our Laravel builds from 5.3 to 5.4 and at the same time moving Foundation Sites from 6.2.3 to 6.3.1.

I've ensured I've updated my _settings.scss file and obviously using the 6.3.1 files from node_modules.

I'm importing it like so:

// Settings
@import "settings";

// Foundation
@import "node_modules/foundation-sites/scss/foundation";

// Include Everything (True) for the Flex Grid :);
@include foundation-everything(true);

I'm getting an error when trying to compile... see below. Can anyone shed some light as to whats gone wrong here?

Module build failed: 
          @if map-has-key($header-defs, font-size) {
             ^
      Argument `$map` of `map-has-key($map, $key)` must be a map

Backtrace:
    node_modules/foundation-sites/scss/typography/_base.scss:334, in function `map-has-key`
    node_modules/foundation-sites/scss/typography/_base.scss:334, in mixin `@content`
    node_modules/foundation-sites/scss/util/_breakpoint.scss:149, in mixin `breakpoint`
    node_modules/foundation-sites/scss/typography/_base.scss:329, in mixin `foundation-typography-base`
    node_modules/foundation-sites/scss/typography/_typography.scss:22, in mixin `foundation-typography`
    node_modules/foundation-sites/scss/foundation.scss:79, in mixin `foundation-everything`
    stdin:8
      in /Users/Luke/Desktop/Sites/New Formula One Autocentres/node_modules/foundation-sites/scss/typography/_base.scss (line 334, column 15)

Most helpful comment

Hey guys, apologies for the delay. Yup appears kball is right I figured it out not too long after, I'd updated my foundation-sites build not realising the _settings.scss had been updated which caused the errors, thanks for the help!

All 3 comments

Note that GitHub issues are only for feature requests / bug reports.

If you need help, use Foundation forum or Stack Overflow.

That being said, can you show us your _settings.scss file?

This looks like an issue with the definition of $header-styles in _settings.scss. See the migration notes in https://github.com/zurb/foundation-sites/releases/tag/v6.3.0

If you can post your settings file we can help debug

Hey guys, apologies for the delay. Yup appears kball is right I figured it out not too long after, I'd updated my foundation-sites build not realising the _settings.scss had been updated which caused the errors, thanks for the help!

Was this page helpful?
0 / 5 - 0 ratings