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

Svelte support? #76

Open
tombroens opened this issue Feb 27, 2021 · 3 comments
Open

Svelte support? #76

tombroens opened this issue Feb 27, 2021 · 3 comments

Comments

@tombroens
Copy link

I did a quick test to try the lib in svelte but getting some errors. Does it have svelte support? Seems to be a 'compile' error. Any tips?

Errors:
[Nollup] Listening on http://localhost:5000
preferring built-in module 'events' over local alternative at 'events', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning

ParseError: /node_modules/hasura-om/src/hasura/events.js
Error: ENOENT: no such file or directory, open '/Users/xxxx/Develop/routify/node_modules/hasura-om/src/hasura/events.js'
at compileModule (/Users/xxx/Develop/routify/node_modules/nollup/lib/impl/NollupCompiler.js:116:19)
at processTicksAndRejections (internal/process/task_queues.js:93:5)

@mrspartak
Copy link
Owner

Hi, I don't really have time to test it with svelte, but it should work with any lib cause it has no dependency on any. I use it with VUE and also on the server-side.

@tombroens
Copy link
Author

Thanks, no problem, maybe the problem is that I want to use it client-side?

@mrspartak
Copy link
Owner

Yes, this could be a reason. Vue uses webpack and it compiles everything fine

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