This repository has been archived by the owner on Jul 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Home
Jonathan Sharpe edited this page Aug 11, 2019
·
11 revisions
Welcome to the starter-kit-cyf wiki!
If you're here because you've got an error, maybe it's something like the below:
-
failed to connect to server [localhost:27017] on first connect
: MongoDB isn't available locally, see MongoDB -
sh: {rimraf,concurrently}: command not found
: the required dependencies may not be installed, see Dev setup#installation -
EADDRINUSE
: you have something else listening to ports the starter kit wants to use, see Dev setup#ports -
Error: Cannot find module 'path/to/dist/server.js'
- you're trying to start the production server without having built the app; don't runnpm [run] start
locally, see the README for the scripts to run -
Two different lockfiles found: package-lock.json and yarn.lock
- you're mixing two different package managers, NPM and Yarn, see Yarn if you want to switch or make everyone stick with NPM -
No 'Access-Control-Allow-Origin' header is present on the requested resource.
- this starter kit is set up to use relative routes between the frontend and the backend, e.g. access"/api/something"
rather than explicitly writing out"http://localhost:3100/api/something"
. This avoids CORS and configuration issues in production.