@patel.gopal55555 If you look at the Cloudflare Worker Template library for Apollo GraphQL you will see you can use an alias in Wrangler webpack config to replace the ‘fs’ (filesystem) module with a null module to exclude it and allow the code to compile.
It depends upon the npm library you are trying to import, wether at runtime the code you’re using actually uses the ‘fs’ module. In the case of the npm Apollo GraphQL package it is not required for the majority of the functionality.
You can use this approach to sub out other npm dependancies.