Closed
Description
When using graphql-binding in the front with Vuejs (through Nuxtjs) I end up having breaking errors regarding 'fs' and 'module' modules.
Won't you have a front-end version which would simplify the talking with the api?
Anyway, love the project. Just wanna find a way to make it work in the front-end if you've got any tips!
Error details:
ERROR in C:/[PATH_TO_PROJECT]/node_modules/graphql-binding/dist/Delegate.js
Module not found: Error: Can't resolve 'fs' in 'C:\[PATH_TO_PROJECT]\node_modules\graphql-binding\dist'
ERROR in C:/[PATH_TO_PROJECT]/node_modules/graphql-import/dist/index.js
Module not found: Error: Can't resolve 'fs' in 'C:\[PATH_TO_PROJECT]\node_modules\graphql-import\dist'
ERROR in C:/[PATH_TO_PROJECT]/node_modules/resolve-from/index.js
Module not found: Error: Can't resolve 'fs' in 'C:\[PATH_TO_PROJECT]\node_modules\resolve-from'
ERROR in C:/[PATH_TO_PROJECT]/node_modules/resolve-from/index.js
Module not found: Error: Can't resolve 'module' in 'C:\[PATH_TO_PROJECT]\node_modules\resolve-from'
Or am I wrong and I should never have tried it in the front end? :/
Metadata
Metadata
Assignees
Labels
No labels