NUE Server loop #42
Replies: 3 comments
-
Do you have |
Beta Was this translation helpful? Give feedback.
-
Yes, module is included, see below. But the tiny server does not need package.json. Problem is, that Node is now more or less ES6 compliant. The workaround is to rename a script with .cjs. /script/server.js is ES6 compliant and you use i.e.:
|
Beta Was this translation helpful? Give feedback.
-
Relates to the old version. Closing. |
Beta Was this translation helpful? Give feedback.
-
None of my node server were running, An ES module error came in the way. Simple solution: rename your JS scripts. The new ending is
.cjs
as in CommonJS. Start a terminal in your create-nue directory, startnode nue-server.cjs
Modify your package.json and add
The continuous loop as of today
Still required
<meta http-equiv="refresh" content="5">
in layout.nue. Go down to 1 second if you like it faster.Beta Was this translation helpful? Give feedback.
All reactions