how to create a domainmodel by using mendix modelsdk

0
Hi everyone: I have a requirement about creating a domainmodel by using mendix modelsdk. I created it successfilly, but when excute mendix update project, it will be a throw a ArgumentNullException exception.i don’t know why it happened, below is my code, please tell me where is error, thanks~           const workingCopy: OnlineWorkingCopy = await project.createWorkingCopy();         const module: projects.IModule = projects.Module.createIn(workingCopy.model().root);         module.name = config.getModuleName();         module.sortIndex = workingCopy.model().allModules().length - 1;         const domainModel: domainmodels.IDomainModel = domainmodels.DomainModel.createIn(module);         await workingCopy.commit();
asked
1 answers
1

You can refer to this thread https://forum.mendix.com/link/questions/91464 that contains concrete examples.

answered