mrspartak / hasura-om

👺 Fragment based orm request generator for Hasura with built in auto-table lookup and base fragment builder
https://hasura-om.js.org/
MIT License
21 stars 2 forks source link

Svelte support? #76

Open tombroens opened 3 years ago

tombroens commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

mrspartak commented 3 years ago

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