Closed nowachri-de closed 3 years ago
Hello @nowachri-de, Currently, REST components aren't optimized for the Total.js v4. We try to optimize them next week, ok?
Thanks, for the fast answer !!!!! Can you please tell me, how I can run the example using V3?
Thanks a lot Christian
Just update /yourapp/index.js
and rewrite total4
to total.js
:
https://github.com/totaljs/framework4/blob/master/helpers/index.js#L31
Hello Peter,
same issue running V3:
SyntaxError: Unexpected token ';'
at new Function (
It's my bug. Please download/update flow.package
again. I have added a missing validation for configuration forms.
There was a problem with the required fields, and the configuration form allowed you to send invalid data.
Dear Peter,
thank you. Using V3 it works. It seems that for V4 there are still some things to do.
Thanks again Christian
Steps to reproduce bug:
`DEBUG PID: 3719 (v4)
PID : 3726 Node.js : v14.17.5 Total.js : v4 OS : linux 4.19.128-microsoft-standard Memory : 10.39 MB / 16.23 MB User : root
Name : Total.js Flow Version : 1.0.0 Date : 2021-08-12 16:56:32 Mode : debug
Directory : /mnt/c/nowak/development/git/emptyproject-flow node_modules : /mnt/c/nowak/development/git/emptyproject-flow/node_modules/total4/
http://0.0.0.0:8000/ `
The following error will appear in the console.
SyntaxError: Unexpected token ';' at new Function ()
at Component.instance.reconfigure (/mnt/c/nowak/development/git/emptyproject-flow/flow/restroute.js:193:12)
at Component.exports.install (/mnt/c/nowak/development/git/emptyproject-flow/flow/restroute.js:310:11)
at Object.FLOW.init (/mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:1650:18)
at /mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:1527:9
at Object.FLOW.reset (/mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:1558:22)
at Object.FLOW.changes (/mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:1525:8)
at WebSocket. (/mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:546:9)
at WebSocketProto.emit (/mnt/c/nowak/development/git/emptyproject-flow/node_modules/total4/index.js:14592:11)
at WebSocketClientProto.$decode (/mnt/c/nowak/development/git/emptyproject-flow/node_modules/total4/index.js:15378:21)
======= 2021-08-12 17:03:58: SyntaxError: Unexpected token ';' SyntaxError: Unexpected token ';'
at new Function ()
at Component.instance.reconfigure (/mnt/c/nowak/development/git/emptyproject-flow/flow/restroute.js:193:12)
at Component.exports.install (/mnt/c/nowak/development/git/emptyproject-flow/flow/restroute.js:310:11)
at Object.FLOW.init (/mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:1650:18)
at /mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:1527:9
at Object.FLOW.reset (/mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:1558:22)
at Object.FLOW.changes (/mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:1525:8)
at WebSocket. (/mnt/c/nowak/development/git/emptyproject-flow/tmp/flow.package/index.js:546:9)
at WebSocketProto.emit (/mnt/c/nowak/development/git/emptyproject-flow/node_modules/total4/index.js:14592:11)
at WebSocketClientProto.$decode (/mnt/c/nowak/development/git/emptyproject-flow/node_modules/total4/index.js:15378:21)