首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vercel部署错误:命令“纱线运行生成”退出1

Vercel部署错误:命令“纱线运行生成”退出1
EN

Stack Overflow用户
提问于 2022-04-05 10:01:47
回答 1查看 1.2K关注 0票数 0

我正在开发一个反应应用程序在VS代码。我用创建-反应-应用程序的设置。我可以使用npm start来运行这个项目,不会有任何问题。当我试图用Vercel发布项目时,我得到了错误:

我用可视化演播室代码命令vercel。工作得很好。但会出现错误。无法完成部署。

Error! Command "yarn run build" exited with 1

Error! Check your logs at

你可以查看日志

代码语言:javascript
复制
Downloading 55 deployment files...
Installing build runtime...
Build runtime installed: 2.845s
Looking up build cache...
Build Cache not found
Installing dependencies...
yarn install v1.22.17
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@3rdweb/hooks > @web3-react/walletlink-connector > walletlink > eth-block-tracker > @babel/plugin-transform-runtime@7.17.0" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@3rdweb/hooks > @web3-react/walletlink-connector > walletlink > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-corejs2@0.3.1" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@3rdweb/hooks > @web3-react/walletlink-connector > walletlink > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-corejs3@0.5.2" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@3rdweb/hooks > @web3-react/walletlink-connector > walletlink > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-regenerator@0.3.1" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@3rdweb/hooks > @web3-react/walletlink-connector > walletlink > eth-block-tracker > @babel/plugin-transform-runtime > babel-plugin-polyfill-corejs2 > @babel/helper-define-polyfill-provider@0.3.1" has unmet peer dependency "@babel/core@^7.4.0-0".
warning "@3rdweb/react > @chakra-ui/icons@1.1.7" has unmet peer dependency "@chakra-ui/system@>=1.0.0".
warning "@3rdweb/react > @chakra-ui/icons > @chakra-ui/icon@2.0.5" has unmet peer dependency "@chakra-ui/system@>=1.0.0".
warning "@3rdweb/react > @emotion/react > @emotion/babel-plugin@11.7.2" has unmet peer dependency "@babel/core@^7.0.0".
warning "@3rdweb/react > @emotion/react > @emotion/babel-plugin > @babel/plugin-syntax-jsx@7.16.7" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @3rdweb/sdk@1.42.0" has unmet peer dependency "ethers@^5.4.6".
warning " > styled-components@5.3.5" has unmet peer dependency "react-is@>= 16.8.0".
warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 32.62s.
Detected Next.js version: 12.1.2
Running "yarn run build"
yarn run v1.22.17
$ next build
info  - Loaded env from /vercel/path0/.env
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
info  - Checking validity of types...
info  - Creating an optimized production build...
Failed to compile.
./components/modal/coinSelector.js
Module not found: Can't resolve './CoinItem' in '/vercel/path0/components/modal'
Import trace for requested module:
./components/modal/TransferModal.js
./components/Header.js
./pages/Dashboard.js
> Build failed because of webpack errors
error Command failed with exit code 1.
Error: Command "yarn run build" exited with 1```
EN

回答 1

Stack Overflow用户

发布于 2022-04-05 10:49:29

签出您的模块在./CoinItem组件上导入coinSelector。似乎您导入了错误的CoinItem路径。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71749794

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档