嘿,我正在观看youtube视频,他正在尝试一种新的链接方法,对我来说,它显示错误的视频链接:https://www.youtube.com/watch?v=khJlrj3Y6Ls时间戳记是从12:00到13:29文件夹结构也一样 错误显示为:
Module not found: Can't resolve './Component' in 'C:\Users\dell\OneDrive\Desktop\react learn\covid-19\src'
而app.js是
import React, { Component } from 'react';
import {Cards,Charts,CountryPicker} from './Component';
class App extends Component {
render() {
return (
<div>
<h1>here is me the app</h1>
</div>
);
}}
export default App;
component文件夹中的index.js是
export {default as Cards } from './Cards/Cards';
export {default as Charts } from './Charts/Charts';
export {default as CountryPicker } from './CountryPicker/CountryPicker';
我自己检查了很多时间,但无法做点什么 文件夹结构为:https://ibb.co/vXy4ssf
答案 0 :(得分:0)
您拼错了文件夹名称。您应该从'./Components'
而不是'./Component'