首页 > 解决方案 > 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但它不起作用。注意:代码在本地运行良好。

请问有什么帮助吗?

标签: javascriptdeploymentsveltenetlify

解决方案


推荐阅读