DEV Community

Discussion on: How to Implement Login with Google in Nest JS

Collapse
 
humayunkabir profile image
Humayun Kabir • Edited

I am getting the following error after applying this method.

node_modules/apollo-server-core/dist/ApolloServer.d.ts:5:8 - error TS1259: Module '"/Users///node_modules/@types/ws/index"' can only be default-imported using the 'esModuleInterop' flag

5 import WebSocket from 'ws';
~~~~~~~~~

node_modules/@types/ws/index.d.ts:270:1
270 export = WebSocket;
~~~~~~~~~~~~~~~~~~~
This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

Collapse
 
humayunkabir profile image
Humayun Kabir

Sorry, this Error is not related to this module.

Collapse
 
imichaelowolabi profile image
Michael Owolabi

Thanks for the clarification Humayun