我创建了一个新的“模态”部分,在这里我加入了另一个模块(这样我可以在模态中显示模块)。我可以在编辑器模式中选择模块,但保存后会弹出此错误:
An error occurred. Please try again later.
前端控制台显示这是来自
/modules/apostrophe-browser-utils/js/always.js
我所拥有的只是
/lib/modules/modal/index.js版本
像这样的文件:
module.exports = {
extend: "apostrophe-pieces",
name: "modal",
label: "Modal",
seo: false,
addFields: [
{
name: "_image",
type: "joinByOne",
withType: "apostrophe-image",
label: "Pick an image",
required: true,
idField: "_id",
filters: {
// Thought maybe not having a projection was an issue. didn't help
projection: {
attachment: 1
}
}
}
]
};
屏幕Cap:
https://screencast.com/t/OGQOD0PiG