decentraland / sdk

PM repository for SDK
Apache License 2.0
4 stars 4 forks source link

[BUG] Inconsistency while upgrading `@dcl/sdk` and packages, without rebuilding `main.crdt` #1096

Open leanmendoza opened 3 months ago

leanmendoza commented 3 months ago

This happens when for example, you are building a scene with a custom schema and add a new property. If this new scene code with the new property try to load the old main.crdt it's going to throw a crash like the screenshot.

imagen

In the case of Editor-actions scene, the problem came while trying to de serialize the old main.crdt without the allowedInBasicView which seems to be a recent property added here while the last update of main.crdt in that scene was two month ago. imagen

The final solution should be including the build of main.crdt in the sdk-commands build at the same time as building the js. This would remove the inconsistency.

This is not a typical case if you use to open the editor while you're modifying the code. (when you do mods in the scene, the main.crdt is updated)