构建期间出现错误 [vite]:Rollup 无法解析从“/opt/build/repo/index.html”导入“/src/main.jsx”

问题描述 投票:0回答:1

我无法在

netlify
上部署我的项目,并且在部署时遇到汇总失败错误,我通过 GitHub 上传了我的项目。

如何解决这个错误并部署我的项目?

我面临的错误:

Error during build:
[vite]: Rollup failed to resolve import "/src/main.jsx" from "/opt/build/repo/index.html".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
netlify
1个回答
0
投票

嗨,我有同样的问题。你解决了吗?

© www.soinside.com 2019 - 2024. All rights reserved.