反应升级问题"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

这就是错误,我不知道出了什么问题我已经谷歌了,我觉得是无休止的,

在这些错误中,我也不知道该做什么或去哪里。有人能给我指出我在这里犯的错误的正确方向吗。


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

我要去吃午饭。谢谢

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

我已经用我的reducer/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;

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

如果有更好或更合适的解决方案,请发表评论。

相关内容

最新更新