Babel.js React升级问题“错误:路径不是字符串”

crcmnpdw  于 2022-12-08  发布在  Babel
关注(0)|答案(1)|浏览(165)

这是一个有相同错误的许多文件之一。
第一个
这是错误的,我不知道是什么错了我有谷歌什么我觉得是无休止的,
其中这些是其余的说错误,我也不知道该做什么或去哪里。谁能给我指出正确的方向,我有什么错误在这里。

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

我要去吃午饭了。谢谢。

t98cgbkg

t98cgbkg1#

所以经过一些研究和测试。
我已经对我的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;

这似乎是过去的错误,但我不确定这是否是一个适当的修复或不作为应用程序不为我提供任何网页,并有其他控制台错误了。
如果有更好或更适当的解决办法,请发表意见。

相关问题