javascript - Svelte、Netlify(部署失败)
问题描述
我正在尝试将一个苗条的应用程序部署到 netlify 中。我在日志中收到部署失败消息。
[!] Error: Could not load /opt/build/repo/src/components/itemCard.svelte
(imported by src/Product/Categories.svelte): ENOENT: no such file or directory, open
'/opt/build/repo/src/components/itemCard.svelte'
9:59:41 PM: Error: Could not load /opt/build/repo/src/components/itemCard.svelte
(imported by src/Product/Categories.svelte): ENOENT: no such file or directory,
open '/opt/build/repo/src/components/itemCard.svelte'
我认为路径的问题。因此,我使用了不同的路径技术,例如./../
orsrc
但它不起作用。注意:代码在本地运行良好。
请问有什么帮助吗?
解决方案
推荐阅读
- mysql - SQL JOIN 问答与 NULL 缺少答案
- c++ - Visual Studio 2017 上的 gtest/Google 测试 C++ 构建错误
- excel - 用于将家谱层次结构数据范围转换为列表数据的简单宏
- google-chrome-extension - 用于平衡内容脚本和后台脚本之间处理的模式
- python - 在 macos 中使用 pyinstaller 进行转换时包含“shape_predictor_68_face_landmarks.dat”的错误
- javascript - 链接到 html 时 jQuery 代码不起作用
- objective-c - 从 Mac 检测配对的蓝牙 LE 设备(即 iPhone、Apple Watch)的接近度
- java - 配置 CsvMapper 以检查每个写入的值
- azure - LUIS 容器服务的模型位置
- java - 评估表达式程序在处理用户输入时遇到问题