on 2024 Nov 06 11:57 AM
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 .
this is my ui5.ymel file
this is my package.json file
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.
Request clarification before answering.
Can you share your project structure?
And what's the script you use to start the server?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
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
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.