- I want to integrate google sheet with React TS
- I am using googleapi and googlesheet npm for the same
- List item
import { JWT } from 'google-auth-library';
const serviceAccountAuth = new JWT({
// env var values here are copied from service account credentials generated by google
// see "Authentication" section in docs for more info
email: process.env.GOOGLE_SERVICE_ACCOUNT_EMAIL,
key: process.env.GOOGLE_PRIVATE_KEY,
scopes: [
'https://www.googleapis.com/auth/spreadsheets',
],
});
But I am getting below issues :-
ERROR in ./node_modules/gaxios/build/src/common.js 19:14-28
Module not found: Error: Can’t resolve ‘url’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/build/src’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “url”: require.resolve(“url/”) }’
– install ‘url’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “url”: false }
ERROR in ./node_modules/gaxios/build/src/gaxios.js 25:16-32
Module not found: Error: Can’t resolve ‘https’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/build/src’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “https”: require.resolve(“https-browserify”) }’
– install ‘https-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “https”: false }
ERROR in ./node_modules/gaxios/build/src/gaxios.js 27:38-60
Module not found: Error: Can’t resolve ‘querystring’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/build/src’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “querystring”: require.resolve(“querystring-es3”) }’
– install ‘querystring-es3’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “querystring”: false }
ERROR in ./node_modules/gaxios/build/src/gaxios.js 29:14-28
Module not found: Error: Can’t resolve ‘url’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/build/src’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “url”: require.resolve(“url/”) }’
– install ‘url’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “url”: false }
ERROR in ./node_modules/gaxios/node_modules/agent-base/dist/helpers.js 38:26-41
Module not found: Error: Can’t resolve ‘http’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/node_modules/agent-base/dist’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “http”: require.resolve(“stream-http”) }’
– install ‘stream-http’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “http”: false }
ERROR in ./node_modules/gaxios/node_modules/agent-base/dist/helpers.js 39:27-43
Module not found: Error: Can’t resolve ‘https’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/node_modules/agent-base/dist’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “https”: require.resolve(“https-browserify”) }’
– install ‘https-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “https”: false }
ERROR in ./node_modules/gaxios/node_modules/agent-base/dist/index.js 41:26-41
Module not found: Error: Can’t resolve ‘http’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/node_modules/agent-base/dist’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “http”: require.resolve(“stream-http”) }’
– install ‘stream-http’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “http”: false }
ERROR in ./node_modules/gaxios/node_modules/https-proxy-agent/dist/index.js 43:25-39
Module not found: Error: Can’t resolve ‘net’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/node_modules/https-proxy-agent/dist’
ERROR in ./node_modules/gaxios/node_modules/https-proxy-agent/dist/index.js 44:25-39
Module not found: Error: Can’t resolve ‘tls’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/node_modules/https-proxy-agent/dist’
ERROR in ./node_modules/gaxios/node_modules/https-proxy-agent/dist/index.js 45:33-50
Module not found: Error: Can’t resolve ‘assert’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gaxios/node_modules/https-proxy-agent/dist’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “assert”: require.resolve(“assert/”) }’
– install ‘assert’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “assert”: false }
ERROR in ./node_modules/gcp-metadata/build/src/gcp-residency.js 22:13-26
Module not found: Error: Can’t resolve ‘fs’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gcp-metadata/build/src’
ERROR in ./node_modules/gcp-metadata/build/src/gcp-residency.js 23:13-26
Module not found: Error: Can’t resolve ‘os’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gcp-metadata/build/src’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “os”: require.resolve(“os-browserify/browser”) }’
– install ‘os-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “os”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/baseexternalclient.js 20:15-32
Module not found: Error: Can’t resolve ‘stream’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “stream”: require.resolve(“stream-browserify”) }’
– install ‘stream-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “stream”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/downscopedclient.js 20:15-32
Module not found: Error: Can’t resolve ‘stream’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “stream”: require.resolve(“stream-browserify”) }’
– install ‘stream-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “stream”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js 23:15-32
Module not found: Error: Can’t resolve ‘stream’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “stream”: require.resolve(“stream-browserify”) }’
– install ‘stream-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “stream”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/googleauth.js 32:24-48
Module not found: Error: Can’t resolve ‘child_process’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
ERROR in ./node_modules/google-auth-library/build/src/auth/googleauth.js 33:11-24
Module not found: Error: Can’t resolve ‘fs’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
ERROR in ./node_modules/google-auth-library/build/src/auth/googleauth.js 35:11-24
Module not found: Error: Can’t resolve ‘os’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “os”: require.resolve(“os-browserify/browser”) }’
– install ‘os-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “os”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/googleauth.js 36:13-28
Module not found: Error: Can’t resolve ‘path’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “path”: require.resolve(“path-browserify”) }’
– install ‘path-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “path”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/identitypoolclient.js 21:11-24
Module not found: Error: Can’t resolve ‘fs’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
ERROR in ./node_modules/google-auth-library/build/src/auth/identitypoolclient.js 22:15-30
Module not found: Error: Can’t resolve ‘util’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “util”: require.resolve(“util/”) }’
– install ‘util’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “util”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/oauth2client.js 21:20-42
Module not found: Error: Can’t resolve ‘querystring’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “querystring”: require.resolve(“querystring-es3”) }’
– install ‘querystring-es3’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “querystring”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/oauth2client.js 22:15-32
Module not found: Error: Can’t resolve ‘stream’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “stream”: require.resolve(“stream-browserify”) }’
– install ‘stream-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “stream”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/oauth2common.js 20:20-42
Module not found: Error: Can’t resolve ‘querystring’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “querystring”: require.resolve(“querystring-es3”) }’
– install ‘querystring-es3’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “querystring”: false }
ERROR in ./node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js 22:21-45
Module not found: Error: Can’t resolve ‘child_process’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
ERROR in ./node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js 23:11-24
Module not found: Error: Can’t resolve ‘fs’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
ERROR in ./node_modules/google-auth-library/build/src/auth/stscredentials.js 21:20-42
Module not found: Error: Can’t resolve ‘querystring’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/auth’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “querystring”: require.resolve(“querystring-es3”) }’
– install ‘querystring-es3’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “querystring”: false }
ERROR in ./node_modules/google-auth-library/build/src/crypto/node/crypto.js 20:15-32
Module not found: Error: Can’t resolve ‘crypto’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/google-auth-library/build/src/crypto/node’
Did you mean ‘./crypto’?
Requests that should resolve in the current directory need to start with ‘./’.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules, /Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules).
If changing the source code is not an option there is also a resolve options called ‘preferRelative’ which tries to resolve these kind of requests in the current directory too.
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “crypto”: require.resolve(“crypto-browserify”) }’
– install ‘crypto-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “crypto”: false }
ERROR in ./node_modules/gtoken/build/src/index.js 13:11-24
Module not found: Error: Can’t resolve ‘fs’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gtoken/build/src’
ERROR in ./node_modules/gtoken/build/src/index.js 16:13-28
Module not found: Error: Can’t resolve ‘path’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gtoken/build/src’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “path”: require.resolve(“path-browserify”) }’
– install ‘path-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “path”: false }
ERROR in ./node_modules/gtoken/build/src/index.js 17:15-30
Module not found: Error: Can’t resolve ‘util’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/gtoken/build/src’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “util”: require.resolve(“util/”) }’
– install ‘util’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “util”: false }
ERROR in ./node_modules/jwa/index.js 3:13-30
Module not found: Error: Can’t resolve ‘crypto’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/jwa’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “crypto”: require.resolve(“crypto-browserify”) }’
– install ‘crypto-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “crypto”: false }
ERROR in ./node_modules/jwa/index.js 5:11-26
Module not found: Error: Can’t resolve ‘util’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/jwa’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “util”: require.resolve(“util/”) }’
– install ‘util’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “util”: false }
ERROR in ./node_modules/jws/lib/data-stream.js 3:13-30
Module not found: Error: Can’t resolve ‘stream’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/jws/lib’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “stream”: require.resolve(“stream-browserify”) }’
– install ‘stream-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “stream”: false }
ERROR in ./node_modules/jws/lib/data-stream.js 4:11-26
Module not found: Error: Can’t resolve ‘util’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/jws/lib’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “util”: require.resolve(“util/”) }’
– install ‘util’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “util”: false }
ERROR in ./node_modules/jws/lib/sign-stream.js 5:13-30
Module not found: Error: Can’t resolve ‘stream’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/jws/lib’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “stream”: require.resolve(“stream-browserify”) }’
– install ‘stream-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “stream”: false }
ERROR in ./node_modules/jws/lib/sign-stream.js 7:11-26
Module not found: Error: Can’t resolve ‘util’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/jws/lib’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “util”: require.resolve(“util/”) }’
– install ‘util’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “util”: false }
ERROR in ./node_modules/jws/lib/verify-stream.js 5:13-30
Module not found: Error: Can’t resolve ‘stream’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/jws/lib’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “stream”: require.resolve(“stream-browserify”) }’
– install ‘stream-browserify’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “stream”: false }
ERROR in ./node_modules/jws/lib/verify-stream.js 7:11-26
Module not found: Error: Can’t resolve ‘util’ in ‘/Users/manojkumar/Desktop/untitled folder/NewReactProject/youcoginze/node_modules/jws/lib’
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
– add a fallback ‘resolve.fallback: { “util”: require.resolve(“util/”) }’
– install ‘util’
If you don’t want to include a polyfill, you can use an empty module like this:
resolve.fallback: { “util”: false }
Package.json
“google-auth-library”: “^9.5.0”,
“google-spreadsheet”: “^4.1.1”,
Node Version : 14