Open juhamust opened 6 years ago
Fixed it with
// server.js
-const Mozaik = require('@mozaik/server')
+const Mozaik = require('@mozaik/server').default
@jderusse, thank you
From the latest commit of the v2 branch, I actually have to remove .default
to get it to work.
I'm not yet familiar with JS nor Mozaïk so I couldn't understand the reason behind this observation.
From the latest commit of the v2 branch, I actually have to remove
.default
to get it to work.I'm not yet familiar with JS nor Mozaïk so I couldn't understand the reason behind this observation.
Me too I had to remove the .default to get it to work otherwise I was facing bellow error:
Server.configureFromFile(path.join(__dirname, configFile)) ^
TypeError: Cannot read property 'configureFromFile' of undefined
at Object.
Expected behavior
Server should start without errors, as documented in http://mozaik.rocks/v2/use/
Actual behavior
For some reason, instance methods are not found:
Steps to reproduce