-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue with grpc-node: dependencies were not found. #1638
Comments
The |
Oh, now I get the reason. But I still don't know how to configure it correctly. If you want to check my configuration and the problem I encountered, the following docker image is a simple reproduction of this problem.
The Dockerfile is shown as below. # Dockerfile
FROM node:12
WORKDIR /root/
RUN npm install -g @vue/cli @vue/cli-service-global
RUN vue create node-grpc --default
WORKDIR /root/node-grpc/
RUN npm install --save @grpc/grpc-js
RUN npm install --save @grpc/proto-loader
COPY main.js /root/node-grpc/src
CMD npm run serve // main.js
import Vue from 'vue'
import App from './App.vue'
import '@grpc/grpc-js'
import '@grpc/proto-loader'
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app') Thank you for your patient guidance. |
The people who know Vue will probably be able to better help you with this problem. |
OK, perhaps I need to change the issue title 😂 |
You should probably be using |
@BigeYoung Came across into the same issue, any update or solution? Did you end up using grpc-web in Vue? |
I have the same issue, any solution? |
If you are trying to run code in the browser, you can't use If you are trying to build a bundle using Vue for use on a recent version of Node, and it is failing as described in this issue, you should file an issue with Vue, because that is an issue with Vue itself, not with |
Problem description
Using VUE:
These dependencies were not found: dns, http2.
After installed dns, http2, it threw
Uncaught Error: Cannot find module "./framer"
https://www.npmjs.com/package/http2 (3 years ago)
Reproduction steps
npm run serve
Above steps are shown as a docker image: https://github.com/BigeYoung/node-grpc/
You might check it quikly by run:
npm install --save dns http2
Super slow for unknown reason
npm run serve
The website is broken. Chrome console logs an error:
Environment
Additional context
I ran
npm install --save dns http2
, and it threw an "uncaught error": "The module "./framer" could not be found", but this error still exists after installing framer.Since I did not save the complete log, I re-run the above steps and will update this issue after
npm install --save dns http2
is completed.The text was updated successfully, but these errors were encountered: