Category : vue.js

I’m using vue 2, Everything works well locally but when I created an image and run it in in docker using the below docker-compose.yml It is giving me ERR_NAME_NOT_RESOLVED frontend: container_name: frontend image: springofhope/application-ui:1.0.0.PREVIEW ports: – "8081:80" depends_on: keycloak: condition: service_healthy environment: NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx VUE_APP_KEYCLOAK_SERVER_URL: http://192.168.1.48:8080 VUE_APP_ENCODING_SERVER_URL: http://encode:9090 restart: always encoding: container_name: encode image: springofhope/encode:1.0.0.PREVIEW ..

Read more

I’m using vite with rails and loading my custom-component like this: main.js import { defineCustomElement } from ‘vue’; import Panel from ‘~/components/panel_custom/Panel.ce.vue’; const CustomElement = defineCustomElement(Panel); window.customElements.define(‘panel-custom’, CustomElement); erb file <panel-custom data="<%= props %>"></panel-custom> <%= vite_javascript_tag ‘note_panel’ %> When now opening the page it keeps reloading permanently. When commenting the import of my component the ..

Read more

I’m new in docker environment, but I’m trying to run my Vue app as a container/image via Dockerfile but I’m getting an error: ERR_EMPTY_RESPONSE and localhost did not send any data. My package.json run script: "serve": "nodemon –exec babel-node src/postService.js" This is my Dockerfile: FROM node:14 WORKDIR /app COPY package.json ./app RUN npm install COPY ..

Read more