React upgrade issue "Error: Path is not a string"

React upgrade issue "Error: Path is not a string"

这是具有相同错误的众多文件之一。

// Load dependencies
import React, { Component } from 'react';
import Radium from 'radium';
import {Typeahead} from 'react-bootstrap-typeahead';

// Load styles
import 'react-bootstrap-typeahead/css/Typeahead.css';

/**
 * Render a Typeahead input that gives autocomplete suggestions.
 */
class YATypeahead extends Component {

  render() {
    return (
      <Typeahead {...this.props} />
    );
  }
}

// Export component, connected to Radium
export default Radium(YATypeahead);
Module not found: Error: path argument is not a string
 @ ./js/containers/main/main.jsx 51:0-60 689:42-53
 @ ./js/containers/router/router.jsx 57:0-36 115:19-25 116:17-31
 @ ./js/containers/root/root.development.jsx 39:0-42 75:42-50
 @ ./js/containers/root/root.js 8:12-58
 @ ./js/index.js 22:0-42 56:41-45

就是这个错误,我也不知道哪里错了google我感觉没完没了,

其中还有我所说的其余错误,我也不知道该做什么或去哪里。任何人都可以指出我在这里出错的正确方向吗?


ERROR in ./js/index.js 12:0-28
Module not found: Error: path argument is not a string

ERROR in ./js/index.js 14:0-52
Module not found: Error: path argument is not a string

ERROR in ./js/index.js 15:0-48
Module not found: Error: path argument is not a string

ERROR in ./js/index.js 16:0-45
Module not found: Error: path argument is not a string

ERROR in ./js/index.js 17:0-35
Module not found: Error: path argument is not a string

ERROR in ./js/reducers/index.js 5:7
Module parse failed: Unexpected token (5:7)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| };
|
> export about from './about';
| export authenticator from './authenticator';
| export classroom from './classroom';
 @ ./js/store/configure-store.development.js 20:0-42 36:60-68
 @ ./js/store/configure-store.js 8:12-69
 @ ./js/index.js 20:0-53 54:12-26

我要去吃午饭了。谢谢

所以经过一些研究和一些测试。

我已经用我的 reducers/index.js 文件完成了这个

import {combineReducers} from "redux";

import about from './about';
import authenticator from './authenticator';
import classroom from './classroom';
import feed from './feed';
import location from './location';
import mealPlan from './meal-plan';
import message from './message';
import parent from './parent';
import progress from './progress';
import region from './region';
import settings from './settings';
import staff from './staff';
import student from './student';

const rootReducer = combineReducers({
    about,
    authenticator,
    classroom,
    feed,
    location,
    mealPlan,
    message,
    parent,
    progress,
    region,
    settings,
    staff,
    student
});

export default rootReducer;

这似乎已经解决了错误,但是我不确定这是否是一个正确的修复,因为应用程序现在没有为我提供任何网页并且还有其他控制台错误。

如果对正在发生的事情有更好或更合适的解决方案,请发表评论。