Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with Vue example #11

Closed
clibu opened this issue May 26, 2021 · 5 comments
Closed

Errors with Vue example #11

clibu opened this issue May 26, 2021 · 5 comments

Comments

@clibu
Copy link

clibu commented May 26, 2021

I tried installing the Vue example with npm and it failed - I try not to use npm. Then did yarn install and all went well. However when I go yarn run serve I get:

yarn run v1.22.10
$ vue-cli-service serve
 INFO  Starting development server...
98% after emitting CopyPlugin

 ERROR  Failed to compile with 4 errors                                                                                             6:49:29 pm
This dependency was not found:

* yjs in ./node_modules/@reactivedata/reactive-crdt/dist/reactive-crdt.module.js, ./node_modules/@reactivedata/yjs-reactive-bindings/dist/yjs-reactive-bindings.module.js and 2 others

To install it, you can run: npm install --save yjs
Issues checking in progress...
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'
No issues found.

I just wanted to have a quick play, so don't go to any trouble. I'm new to yjs and saw your post: https://discuss.yjs.dev/t/reactive-crdt-easy-to-use-api-to-use-yjs-and-build-collaborative-apps/507/7

I understand you are using a fork of yjs.

FYI For managing state I was using NX Observe, then moved to onChange and more recently the reactive code in Acebase which is the best fit so far.

I am now looking seriously at yjs which is how I discovered your lib. The ability to use plain JS objects and arrays is very appealing. I don't use Vue or React 😀

PS. I'm using Node v16.1.0 on Windows 10

@clibu
Copy link
Author

clibu commented May 26, 2021

I've tried creating a new project with the https://github.com/YousefED/reactive-crdt#without-framework example and am running into problems with your reactive-crdt.js etc. files using require() but the example code uses es6 import's. I'm not using webpack, babel etc. and just running the example in Node.

@YousefED
Copy link
Owner

Hi @clibu ! Nice to see you're looking into reactive-crdt. If you could share some example code, I can look into your issue!

@clibu
Copy link
Author

clibu commented May 27, 2021

@YousefED If you try:

> yarn install
> cd to todo-vue
> yarn install
> yarn run serve

and see if it works for you.

@YousefED
Copy link
Owner

YousefED commented Jun 8, 2021

Hi @clibu ,

Do you have the same issue with npm instead of yarn? For me it works with NPM

(I'm running into another compatibility issue with Vue though, which I'm solving separately)

@YousefED
Copy link
Owner

@clibu I expect this is resolved in the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants