Skip to content

Missing dependency 'ws' when attempting to use kikstart-graphql-client in firebase function #183

@Artorp

Description

@Artorp

I received this error message when attempting to use kikstart-graphql-client in a firebase function:

Provided module can't be loaded. 
Did you list all required modules in the package.json dependencies?
Detailed stack trace: Error: Cannot find module 'ws' 
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/workspace/node_modules/kikstart-graphql-client/dist/kikstart-graphql-client.js:11:30) 

Seems like this issue is from importing 'ws' in https://github.com/beeman/kikstart-graphql-client/blob/master/src/kikstart-graphql-client.ts#L13, but not listing it as a dependency in package.json.

I fixed it on my side by adding 'ws' as a dependency in my local project.

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