cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

In ui5 tooling middleware-livereload error connection refused

Prajwal_N1
Explorer
0 Kudos
875

Hi,

In my UI5 Project I added middleware-livereload in the .ymel file and also added necessary dependencies but 

I am getting error in browser console .

Prajwal_N_0-1730894045002.png

this is my ui5.ymel file

Prajwal_N_1-1730894086002.png

this is my package.json file

Prajwal_N_2-1730894120309.png

This is error in console it's showing ,the first one is the error that I am facing .

if any one know the solution , provide me.

View Entire Topic
nicoschoenteich
Developer Advocate
Developer Advocate
0 Kudos

Can you share your project structure?

And what's the script you use to start the server?

 

Prajwal_N1
Explorer
0 Kudos

Hi ,

Prajwal_N_0-1730969773712.png

specVersion: "3.0"
metadata:
  name: ui5.product.list
type: application
framework:
  name: SAPUI5
  version: "1.114.0"
  libraries:
    - name: sap.ui.core
    - name: sap.m
    - name: themelib_sap_horizon
      optional: true
server:
  customMiddleware:
  - name: ui5-middleware-livereload
    afterMiddleware: compression
    configuration:
     debug: true
     extraExts: "xml,json,properties"
     path: webapp
     
builder:
  customTasks:
   - name: transpile-babel
     beforeTask: generateComponentPreload
---
# Babel task configuration
specVersion: '3.0'
kind: extension
type: task
metadata:
  name: transpile-babel
task:
  path: lib/tasks/transpile-babel.js     

this is my ui5.yeml file.

{
  "name": "my-products",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "devDependencies": {
    "@babel/core": "^7.22.9",
    "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
    "@babel/plugin-transform-destructuring": "^7.22.5",
    "@babel/plugin-transform-spread": "^7.22.5",
    "@babel/preset-env": "^7.22.9",
    "@ui5/cli": "^3.3.2"
  },
  "scripts": {
    "start": "ui5 serve -o",
    "build": "ui5 build",
    "test": "echo \"Error: no test specified\" && exit 1",
    "livereload": "livereload --port 35729"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "type": "module",
  "dependencies": {
    "ui5-middleware-livereload": "^3.1.0"
  }
}

this is my package.json file