'Asset | Asset[]' is not assignable to parameter of type 'Node'

    cc.resources.load("main",
    (errorMessage, loadRes)=> {
        let p1 = cc.instantiate(loadRes);
        let parent = cc.find("Canvas");
        parent.addChild(p1);
    });

在尝试新的Api时,发现这个加载完后,添加到node上一直报这个错误

Argument of type ‘Asset | Asset[]’ is not assignable to parameter of type ‘Node’.
Type ‘Asset’ is missing the following properties from type ‘Node’: groupIndex, group, position, x, and 104 more.ts(2345)

但其实,运行后发现,并没有错误,能正常运行出来 。。。很尴尬,我在这研究了半天。。。

后面怎么处理的,我也遇到了这个问题

creator.d.ts的类型错了 改下就好了