相关疑难解决方法(0)

Reactjs 模块构建错误

我是 Reactjs 的新手,并开始学习它。我一直在尝试启动一个基本的 hello world 程序,但它在编译级别失败。使用 create-react-app hello-world 创建了一个启动 hello-word 程序,它给了我一个很好的文件夹结构,里面有一堆文件。在这里你可以看到编译错误

Failed to compile
./src/index.js
Module build failed: Error: Failed to load plugin import: Cannot find module 
'eslint-plugin-import'
Referenced from: 
at Array.forEach (native)
at Array.reduceRight (native)
This error occurred during the build time and cannot be dismissed.
Run Code Online (Sandbox Code Playgroud)

此处错误状态找不到模块,因此我尝试安装 eslint 插件导入、标准 .. 等,但仍然无法正常工作。下面是我的 webpack.config.dev.js

// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in …
Run Code Online (Sandbox Code Playgroud)

javascript reactjs eslint

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

eslint ×1

javascript ×1

reactjs ×1