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.
Uh oh!
There was an error while loading. Please reload this page.
-
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
.cjsas in CommonJS. Start a terminal in your create-nue directory, startnode nue-server.cjsModify 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