Skip to content

Instantly share code, notes, and snippets.

@chip
Created January 27, 2017 16:06
Show Gist options
  • Select an option

  • Save chip/ef513f1d413e81ae84f589c3f9a45124 to your computer and use it in GitHub Desktop.

Select an option

Save chip/ef513f1d413e81ae84f589c3f9a45124 to your computer and use it in GitHub Desktop.
React component using styled-components
Uncaught TypeError: Cannot read property 'indexOf' of undefined
at index.js (modules.js?hash=87d9283…:91699)
at fileEvaluate (modules-runtime.js?hash=637cb12…:191)
at require (modules-runtime.js?hash=637cb12…:116)
at meteorInstall.node_modules.styled-components.lib.vendor.postcss.css-syntax-error.js (modules.js?hash=87d9283…:88935)
at fileEvaluate (modules-runtime.js?hash=637cb12…:191)
at require (modules-runtime.js?hash=637cb12…:116)
at meteorInstall.node_modules.styled-components.lib.vendor.postcss.node.js (modules.js?hash=87d9283…:88246)
at fileEvaluate (modules-runtime.js?hash=637cb12…:191)
at require (modules-runtime.js?hash=637cb12…:116)
at meteorInstall.node_modules.styled-components.lib.vendor.postcss.declaration.js (modules.js?hash=87d9283…:88081)
import React from 'react';
import { Row, Col } from 'react-bootstrap';
import styled from 'styled-components';
const RedRow = styled(Row)`
color: red;
`;
const Status = () => (
<div>
<RedRow>
<Col>
Red
</Col>
</RedRow>
</div>
);
export default Status;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment