Css Meteor TypeError:需要(…)。addStyles不是函数
我正在尝试添加如下样式:Css Meteor TypeError:需要(…)。addStyles不是函数,css,reactjs,meteor,Css,Reactjs,Meteor,我正在尝试添加如下样式: import './landing.css'; 或 在react组件上,出现以下错误: TypeError:需要(…)。addStyles不是函数 我使用的是最后一颗流星1.5.2.1 /导入/ui/pages/Landing.jsx 在反应组分中: import React, { Component } from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; import './landing.
import './landing.css';
或
在react组件上,出现以下错误:
TypeError:需要(…)。addStyles不是函数
我使用的是最后一颗流星1.5.2.1
/导入/ui/pages/Landing.jsx
在反应组分中:
import React, { Component } from 'react';
import { Grid, Row, Col } from 'react-bootstrap';
import './landing.css'
// import { someClass } from "./landing.css";
export default class Landing extends Component {
constructor(props){
super(props);
}
render() {
return (
<Grid fluid id="landing">
<Row className="show-grid">
<Col xs={12} md={12}>
<h1 className="someClass">
Landing Page
</h1>
</Col>
</Row>
</Grid>
);
}
}
我需要一些额外的包吗?确保“/imports/ui/pages/Landing.jsx”没有被导入到“lib”或“两者”或“server”中?我只在尝试执行SSR时看到错误发生,并且文件正在加载到“lib”目录(可由服务器和客户端访问)。显示您正在使用的整个代码(带有文件路径)。
import React, { Component } from 'react';
import { Grid, Row, Col } from 'react-bootstrap';
import './landing.css'
// import { someClass } from "./landing.css";
export default class Landing extends Component {
constructor(props){
super(props);
}
render() {
return (
<Grid fluid id="landing">
<Row className="show-grid">
<Col xs={12} md={12}>
<h1 className="someClass">
Landing Page
</h1>
</Col>
</Row>
</Grid>
);
}
}
.someClass {
color: red
}