我已经使用Ubuntu 17在Rekit Studio上启动了一个项目,然后由于计算机上的问题,我不得不移至Windows。但是,当我在Windows上安装Rekit并打开项目时,出现以下错误:
./src/features/pages/route.js
Module not found: `C:\Users\guilh\Documents\Current Jobs\caixaverde-front\src\features\pages\index.js` does not match the corresponding path on disk `Index.js`.
它表示不匹配,即使index.js恰好在此文件夹中。我在React中还很新,您知道如何在Windows上正确配置路由吗?谢谢
route.js文件
import {
Index,
Login,
Registration,
Option,
ShoppingCart,
} from './';
export default {
path: 'pages',
name: 'Pages',
childRoutes: [
{ path: 'index', name: 'Index', component: Index, isIndex: true },
{ path: '/login', name: 'Login', component: Login },
{ path: '/cadastro', name: 'Registration', component: Registration },
{ path: '/preferencia', name: 'Option', component: Option },
{ path: '/carrinho', name: 'Shopping cart', component: ShoppingCart },
],
};