Jss: [jss-nested] container.indexOf is not a function

Created on 19 Aug 2017  路  1Comment  路  Source: cssinjs/jss

    '@global a': {
        'font-family': 'Source Sans Pro, sans-serif',
        'font-weight': '600',
        'color': 'white',
        '&:focus': {
            color: '#FF7EBF'
        },
        '&:hover': {
            color: '#FF7EBF'
        }
    },

This code generate error container.indexOf is not a function. I am using default preset.

bug moderate plugin

Most helpful comment

looks like a bug with nesting and inline globals.

As a workaround you can do this:

'@global': {
  a: {
    'color': 'white',
    '&:focus': {
      color: '#FF7EBF'
    }
  }
}

>All comments

looks like a bug with nesting and inline globals.

As a workaround you can do this:

'@global': {
  a: {
    'color': 'white',
    '&:focus': {
      color: '#FF7EBF'
    }
  }
}
Was this page helpful?
0 / 5 - 0 ratings