简体   繁体   English

错误:模块构建失败:错误:找不到相对于目录“ / [project] frontend”的预设“ react-app”

[英]Error: Module build failed: Error: Couldn't find preset “react-app” relative to directory “/[project] frontend”

I am following the tutorials to create a react app using create-react-app. 我正在按照教程使用create-react-app创建React应用。

There were a number of dependencies that didn't get installed when loading the webpack-dev-server. 加载webpack-dev-server时,有许多未安装的依赖项。

I get the following error when I try to npm run start. 当我尝试npm run start时出现以下错误。

What does this mean and can anyone tell me what is needed to fix it? 这是什么意思,谁能告诉我解决该问题需要什么?

Module build failed: Error: Couldn't find preset "react-app" relative to directory "/[Proeject folder]/frontend" 模块构建失败:错误:找不到相对于目录“ / [Proeject文件夹] / frontend”的预设“ react-app”

运行npm install babel-preset-react-app

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Heroku和Django:来自终端/ CLI的错误“找不到该应用程序” - Heroku and Django : error “Couldn't find that app” from terminal/CLI “错误:找不到该应用程序。 › › 错误 ID:not_found。” 在控制台中运行 heroku 命令时 - "Error: Couldn't find that app. › › Error ID: not_found." when running heroku commands in console Django 服务器和 React 前端项目上的 Cors 或 Axios 错误 - Cors or Axios Error on Django Server and React frontend project 在 heroku 上找不到该进程类型 (web) 错误 - Couldn't find that process type (web) error on heroku 找不到部署Heroku的WSGI模块 - Couldn't find WSGI module deploying Heroku 为什么 heroku 说即使构建成功也找不到该应用程序? - Why heroku saying couldn't find that app even when the build is successful? yaml:第 3 行:找不到预期的“:”错误:构建失败:退出状态 3 - yaml: line 3: could not find expected ':' ERROR: failed to build: exit status 3 安装打包的Django应用会导致失败的“迁移”错误“未命名模块……” - Installing a packaged Django app results in failed “migrate” error “no module named…” 如果从Templetetag导入模块,Django无法找到我的模块 - Django couldn't find my module if it is imported from a templetetag Docker 错误:找不到环境文件:/home/sam/code/docker/.env.dev - Docker ERROR: Couldn't find env file: /home/sam/code/docker/.env.dev
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM