Skip to content

Instantly share code, notes, and snippets.

@monokrome
Created January 31, 2019 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monokrome/e49cf54bef93de8a9a6718b7521dedc2 to your computer and use it in GitHub Desktop.
Save monokrome/e49cf54bef93de8a9a6718b7521dedc2 to your computer and use it in GitHub Desktop.
> const { StyleSheet, css } = require('aphrodite');
undefined
> const sheet = StyleSheet.create({ button: { backgroundColor: '#F90' }})
undefined
> css(sheet.button, sheet)
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at OrderedElements.addStyleType (/Users/bailey_stoner/.local/share/go/src/github.com/monokrome/sandbox/node_modules/aphrodite/lib/chunk-ff1dea3c.js:271:39)
at generateCSS (/Users/bailey_stoner/.local/share/go/src/github.com/monokrome/sandbox/node_modules/aphrodite/lib/chunk-ff1dea3c.js:440:16)
at injectStyleOnce (/Users/bailey_stoner/.local/share/go/src/github.com/monokrome/sandbox/node_modules/aphrodite/lib/chunk-ff1dea3c.js:841:21)
at injectAndGetClassName (/Users/bailey_stoner/.local/share/go/src/github.com/monokrome/sandbox/node_modules/aphrodite/lib/chunk-ff1dea3c.js:947:5)
at css (/Users/bailey_stoner/.local/share/go/src/github.com/monokrome/sandbox/node_modules/aphrodite/lib/chunk-ff1dea3c.js:1158:24)
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment