YousefED / SyncedStore

SyncedStore CRDT is an easy-to-use library for building live, collaborative applications that sync automatically.
https://syncedstore.org
MIT License
1.72k stars 51 forks source link

Y.observeTypeCreated is not a function #10

Closed getflourish closed 3 years ago

getflourish commented 3 years ago

I’ve been trying to move my test code to a CodeSandbox. The code works fine with Vite on my local machine, but somehow I see an error when I tried to replicate it on CodeSandbox. No idea what’s wrong and wether it is related to this repo…

https://codesandbox.io/s/mystifying-wood-5zf8z?file=/src/App.vue

image
YousefED commented 3 years ago

This is an issue I had as well with CodeSandbox. CodeSandbox doesn't pick up my custom Yjs build correctly (it's loaded here).

It should be resolved when my change lands in yjs (because then we don't need the custom build anymore, I'd really not like this project to depend on a fork): https://github.com/yjs/yjs/pull/298

YousefED commented 3 years ago

@getflourish this is fixed if you upgrade to the latest version: https://codesandbox.io/s/red-morning-lshps?file=/src/App.vue