2.4中写package,在panel的index.js中如下引用另外一个js脚本
const Test = Editor.require(‘packages://hello/tools/Test.js’)
然后一直报错
TypeError [ERR_INVALID_ARG_VALUE]: The argument ‘id’ must be a non-empty string. Received ‘’
Test.js中就是一个空的文件
module.exports = class Test {}
有大佬知道是啥原因么?