-
Notifications
You must be signed in to change notification settings - Fork 53
dns and http2 dependency? #163
Comments
@fsalliau Actually, I see, it looks like a dependency of a dependency. The two modules it is complaining about -- |
Looks like others having the same exact issues with a different library, however, Vue is the common denominator -- grpc/grpc-node#1638 |
Also, this is a nodejs module -- is your app's configuration currently trying to compile it into your frontend code? That might be the problem |
Thanks for your feedback. I just created a vanilla Vue project using vue cli, without vuex, router or vuetify. "dependencies": { I've replaced the standard HelloWorld.vue component with:
and I've added the api.js module as follows:
When running npm run serve, I get the same error on dns and http2 dependency as mentioned in the beginning. KR, Frank |
@fsalliau, I think the issue is that you are trying to use a Node.js module in the browser. This module isn't isomorphic/universal, and is only supported in a Node environment at the moment. That would explain the errors about the |
If you want browser support, you can add a feature request. It is definitely possible with some refactoring. |
@kaimallea yes, I think you're right. No worries, I will handle upload to imgur in backend code. I will close this issue. Thanks for the help! |
Hi,
I tried to install and run [email protected] in a Vue project.
I got the following message:
When installing the dns and http2 dependencies, I got a whole bunch of warnings.
Dependencies I use:
"dependencies": {
"core-js": "^3.6.5",
"express": "4.17.1",
"imgur": "2.0.0-next.3",
"lodash": "4.17.21",
"serve-static": "1.14.1",
"vue": "^2.6.11",
"vue-image-upload-resize": "2.3.0",
"vue-json-pretty": "1.7.1",
"vue-router": "^3.2.0",
"vuetify": "^2.4.0",
"vuex": "^3.4.0"
},
NodeJS v15.14.0 on MacOS
Can you tell me how to make this work?
Thanks in advance
Frank
The text was updated successfully, but these errors were encountered: