Sapper导出手册条目使编译失败

时间:2020-10-30 20:53:45

标签: svelte sapper

对于我正在构建的静态站点,默认的sapper导出命令有效,但是在特定情况下,它缺少一些页面。

在路线预载https://github.com/Paulmicha/research-journal/blob/master/src/routes/%5B...slug%5D.svelte中,我使用:

await this.fetch(`/data/entities/content/page/${slug.join('/')}.json`);

然后允许从静态JSON文件生成所有URL。

尝试失败:https://github.com/Paulmicha/research-journal/blob/master/scripts/sapper_export.js

任何指针吗?

0 个答案:

没有答案