-
Notifications
You must be signed in to change notification settings - Fork 271
http2: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted #286
Comments
Well none of that sounds right. You do not need What version of node.js are you using? |
I didn't install http2 or request initially but when I imported dialogflow package I started receiving messages that I was missing those dependencies. Using node v10.15.1 |
I get the same errors. Is there a fix yet or work around? |
I am also getting the same errors: ./node_modules/http2/lib/protocol/index.js ./node_modules/grpc/src/grpc_extension.js ./node_modules/grpc/node_modules/node-pre-gyp/lib/pre-binding.js ./node_modules/grpc/node_modules/node-pre-gyp/lib/util/versioning.js |
@Anshul0305 @zjpiazza in the root directory of the project, not the samples directory, could you run:
and
|
Here is the output of
|
@Anshul0305 @zjpiazza I believe that this error you're seeing:
Is from webpack, and is due to the fact that the |
I'm having this issue as well. Just moved from the apiai library to dialogflow, removed node_modules and package-lock.json, did |
@danfrost are you using React, and/or Webpack? Unfortunately |
@zjpiazza I'm closing this issue, as a duplicate of #16, we'd very much love to support Webpack in the not too distant future -- but unfortunately it's not supported today. @danfrost If you're having an issue that isn't webpack related, please feel free to open a new issue 👍 otherwise, please feel free to join the conversation on #16. |
When trying to use the run the code sample in this repo, I was told I was missing http2 and request packages. So I did as instructed and installed both. After that I received this message:
warning in ./node_modules/grpc/node_modules/node-pre-gyp/lib/util/versioning.js
Critical dependency: the request of a dependency is an expression
warning in ./node_modules/grpc/node_modules/node-pre-gyp/lib/pre-binding.js
Critical dependency: the request of a dependency is an expression
in ./node_modules/grpc/src/grpc_extension.js
Critical dependency: the request of a dependency is an expression
warning in ./node_modules/http2/lib/protocol/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
I have no idea what is going on or how I can resolve this issue. I thought maybe I introduced some issue so I deleted the project repeated the exact steps and I received the same error.
The text was updated successfully, but these errors were encountered: