-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server fails to start [v2] #17
Comments
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 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 |
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
git clone https://github.com/plouc/mozaik-demo.git cd mozaik-demo git checkout mozaik-2 npm install node server.js
The text was updated successfully, but these errors were encountered: