Can't add cc.Audioclip as property

Hey guys.
I have a component that has several properties with cc.AudioClip type. Whenever I try to drag and drop a sound file (in .MP3 format, Download Mode WebAudio) into the property in Cocos Creator, it lets me add the clip, then immediately reports of a Type Error. When I try to add the same file to the AudioClip property of an AudioSource component, it’s added without any problem. It happens for every sound file I try.
Attached below is a basic test component I wrote, the issue happens in that component as well

cc.Class ({
extends: cc.Component,
properties: {
testAudioClip: {
default: null,
type: cc.AudioClip,
}
}
});

I use Cocos Creator 1.9.0 with WebStorm 2017.3, on macOS Sierra 10.12.6
How can I solve that issue?

Just use url instead of type.

cc.Class ({
      extends: cc.Component,
      properties: {
           testAudioClip: {
                default: null,
                url: cc.AudioClip,
           }
      }
});
2 Likes

It worked. Thank you!