Skip to content
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

On version 2, when using the demo the server.js failed #163

Closed
lslinnet opened this issue Sep 28, 2018 · 3 comments
Closed

On version 2, when using the demo the server.js failed #163

lslinnet opened this issue Sep 28, 2018 · 3 comments

Comments

@lslinnet
Copy link

Just checking out the demo repo from github, checking out the mozaik-2 branch and starting the server.js.

Further testing showed that this was due to fails in the npm install process. which are shown as an option on the website.

➜  mozaik-demo git:(mozaik-2) ✗ node --version
v10.5.0
➜  mozaik-demo git:(mozaik-2) ✗ npm --version
6.3.0
➜  mozaik-demo git:(mozaik-2) ✗ node server.js
> using config file: 'conf/config.yml'

/Users/larslinnet/Sites/mozaik-demo/server.js:11
Mozaik.configureFromFile(configPath)
       ^

TypeError: Mozaik.configureFromFile is not a function
    at Object.<anonymous> (/Users/larslinnet/Sites/mozaik-demo/server.js:11:8)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:240:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3)
@lslinnet
Copy link
Author

Seems this might have been outdated node_modules :/

@juhamust
Copy link
Contributor

Relates: plouc/mozaik-demo#17

@djschoone
Copy link

The solution in plouc/mozaik-demo#17 fixes the demo. I think the instruction misses starting your server node server.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants