前端开发问题

1、shasum check failed for...

输入命令:

npm --registry http://registry.cnpmjs.org info underscore 
2、Uncaught TypeError: Cannot read property 'prepareStyles' of undefined
google搜索找到的解决方法:
'use strict';
import React from "react";

import FontIcon from 'material-ui/FontIcon';
import RaisedButton from 'material-ui/RaisedButton';

import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import getMuiTheme from 'material-ui/styles/getMuiTheme';

class TodoHeader extends React.Component {

    // 绑定键盘回车事件,添加新任务
    handlerKeyUp(event) {
        if (event.keyCode === 13) {
            let value = event.target.value;

            if (!value) return false;

            let newTodoItem = {
                text: value,
                isDone: false
            };
            event.target.value = "";
            this.props.addTodo(newTodoItem);
        }
    }
    getChildContext() {
        return { muiTheme: getMuiTheme(baseTheme) };
    }
    render() {
        return (

            
) } } export default TodoHeader; TodoHeader.childContextTypes = { muiTheme: React.PropTypes.object.isRequired };



你可能感兴趣的:(前端开发问题)