Skip to content

Error with 'fs' and 'module' modules in front end #297

Closed
@gahabeen

Description

@gahabeen

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions