Some script is being force exclueded

When I add a script and write the content, it will automatically be excluded. Hope for help. Thanks a lot.

var ArtworkObject = pc.createScript('artworkObject');
ArtworkObject.attributes.add('data', {
    type: 'json', array: true,
    schema: [{
        name: 'id', type: 'number'
    }, {
        name: 'anchorId', type: 'string'
    }, {
        name: 'src', type: 'string'
    }, {
        name: 'type', type: 'string'
// initialize code called once per entity
ArtworkObject.prototype.initialize = function() {
    this.globalCommunication ='Feature').script.globalCommunication
    this.sceneName = this.globalCommunication.sceneName;
    this.artworkGroup ="Artwork");


    this.on('attr:data', function (value, prev) {
    }, this);

ArtworkObject.prototype.loadJsonFromRemote = function (url, callback) {
    var xhr = new XMLHttpRequest();
    xhr.addEventListener("load", function () {
    });"GET", url);

ArtworkObject.prototype.getSceneArtworkData = function() {
    let self = this;
    this.sceneName = this.globalCommunication.sceneName;
    this.loadJsonFromRemote(`https://xxx/1139101/testing/artworks/${this.sceneName}.json`, function (data) {

ArtworkObject.prototype.initDisplay = async function (data) { = data.json;

ArtworkObject.prototype.onDataChange = async function () {
    this.artworkGroup ="Artwork");

// update code called every frame
ArtworkObject.prototype.update = function(dt) {


Hey @JobyCoding Are you getting this issue on just this one script? Can you share the project if possible?

I got this problem in certain script, include bloom and apply bloom
I feel sorry that I cannot share the project that I suffer this question because I am only the co-editor of a private project.

When I copy the same script to a public project, it seems never occurs.

can you delete the script and re-add it?

Yes, it work at first, but when I modify the script or parse it, it will exclude itself again.