我收到一条错误消息:
未捕获的TypeError:无法读取未定义的属性“字段”
我认为这与我的模块相互引用有关,我不确定如何正确解决此问题。
ListConfig.js:
import listConfig; from "./list.config";
const deploy = {
lists: {
create: async () => {
listConfig.map();
}
},
fields: {
define: params => {}
}
};
export default deploy;
Deploy.js:
import deploy from "./sp.deploy";
const listConfig = {
lists: [
{
deploy.fields.define()
}]
}
export default listConfig;
App.js:
import deploy from "./../../build/sp.deploy";