I integrate the npm package into Google Cloud with my responsive application and I use firebase.
Mistakes I am facing -
WARNING c. /~/google-cloud/~/hash-stream-validation/index.js Module not found: Error: Cannot resolve "fast-crc32c" in '/ Home / linuxbox / React-Workspace / Kaptify / node_modules / Google cloud / node_modules / hash stream-validation '@. / ~ / google-cloud / ~ / hash-stream-validation / index.js 5: 8-30 @. /~/google-cloud/~/@google-cloud/storage/src/file.js @. /~/google-cloud/~/@google-cloud/storage/src/index.js @. /~/google-cloud/src/index.js @. / src / actions / UserStateStore.js @. /app.js @multi (webpack) -dev-server / client? http://127.0.0.1:3000 webpack / hot / dev-server. / app.jsWARNING c. /~/google-cloud/~/google-auto-auth/index.js 53: 13-58 Critical dependency: requesting a dependency is an expressionWARNING c. / ~ / google-cloud / ~ / grpc / src / node / src / grpc_extension.js 38: 14-35 Critical dependency: the request for the dependency is ExpressionWARNING. / ~ / Google-cloud / ~ / node-pre-gyp / lib / pre-binding.js 19: 22-48 Critical dependency: dependency request is an expressionWARNING. / ~ / Google-cloud / ~ / node-pre-gyp / lib / util / versioning.js 15: 20-67 Critical Dependency: The dependency request is an Expression
WARNING c. /~/google-cloud/~/hash-stream-validation/index.js Module not found: Error: Cannot resolve "fast-crc32c" in '/ Home / linuxbox / React-Workspace / Kaptify / node_modules / Google cloud / node_modules / hash stream-validation '@. / ~ / google-cloud / ~ / hash-stream-validation / index.js 5: 8-30 @. /~/google-cloud/~/@google-cloud/storage/src/file.js @. /~/google-cloud/~/@google-cloud/storage/src/index.js @. /~/google-cloud/src/index.js @. / src / actions / UserStateStore.js @. /app.js @multi (webpack) -dev-server / client? http://127.0.0.1:3000 webpack / hot / dev-server. / app.js
WARNING c. /~/google-cloud/~/google-auto-auth/index.js 53: 13-58 Critical dependency: requesting a dependency is an expression
WARNING c. / ~ / google-cloud / ~ / grpc / src / node / src / grpc_extension.js 38: 14-35 Critical dependency: the request for the dependency is Expression
WARNING. / ~ / Google-cloud / ~ / node-pre-gyp / lib / pre-binding.js 19: 22-48 Critical dependency: dependency request is an expression
WARNING. / ~ / Google-cloud / ~ / node-pre-gyp / lib / util / versioning.js 15: 20-67 Critical Dependency: The dependency request is an Expression
Can someone help me solve this?
, webpack, , google-cloud .
google-cloud
-:
config = { // ... externals: { '@google-cloud/storage': 'commonjs @google-cloud/storage' }, // ... }
, , (. Backend Apps Webpack). webpack externals , . , require() 'ed node_modules, .
externals
require()
node_modules
- , webpack-node-externals, .
Source: https://habr.com/ru/post/1672789/More articles:Hard coding confidence interval like a mustache in a bar chart - pythonHow can I create libtensorflow.so for Rens Tensorflow bindings without SSE? - tensorflowWebpacks and major suppliers - javascriptDisable SSE4.1 when compiling TensorFlow - tensorflowSharing common Springboot integration tests with a jar? - spring-bootГде я могу получить ключ подписки LUIS? - azureAccess to an integer JSON element - jsonInvalid argument, Invalid subscription key when trying to add Azure key - microsoft-cognitiveIs there any solution to make localstorage setItem asynchronous in javascript - javascriptStop the JobDispatcher Firebase service - androidAll Articles