Unable to `yarn server`
I have tried a few configurations, and haven't been successful at running our dev server with the newest code release. When running yarn server
, the browser resolves to Cannot GET /
. This happens for both NODE_ENV=development
and NODE_ENV=production
. This happens on our AWS instance (ubuntu) as well as my development laptop (arch).
Here is the output:
yarn run v1.17.3
$ pubsweet server
info: Starting PubSweet app
info: Checking if database tables exist.
info: Database tables exist.
info: App started.
info: The app will be kept running, even if errors occur, until you stop it.
info: To stop the app use ctrl-C
info: Registered component @pubsweet/model-team
info: Registered component @pubsweet/model-user
info: Registered component @pubsweet/component-send-email
info: Registered component ./server/api
info: Registered component ./server/models/chatMessage
info: Registered component ./server/models/chatThread
info: Registered component ./server/models/curatorReview
info: Registered component ./server/models/identity
info: Registered component ./server/models/manuscript
info: Registered component ./server/models/manuscriptVersion
info: Registered component ./server/models/review
info: Registered component ./server/models/teamMember
info: Registered component ./server/models/team
info: Registered component ./server/models/user
info: Registered component ./app/wbApi
info: Registered server component ./app/wbApi
info: Registered component ./server/export
info: Registered server component ./server/export
info: Registered component ./app/pubMedApi
info: Registered server component ./app/pubMedApi
info: Registered component ./app/dataCiteApi
info: Registered server component ./app/dataCiteApi
info: Coko server => Registering graphql middleware...
info: Coko server => Middleware: Registered email middleware
info: Starting HTTP server
info: App is listening on port 5000
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
webpack built app 56e4439525a099158dd7 in 20021ms
ℹ 「wdm」: Hash: 56e4439525a099158dd7
Version: webpack 4.42.1
Time: 20021ms
Built at: 04/13/2021 8:20:06 PM
Asset Size Chunks Chunk Names
app.js 9.36 MiB app [emitted] app
app.js.gz 2.31 MiB [emitted]
app.js.map 8.66 MiB app [emitted] [dev] app
favicon.ico 6.61 KiB [emitted]
index.html 244 bytes [emitted]
logo.png 28 KiB [emitted]
print.css 1.01 KiB [emitted]
Entrypoint app = app.js app.js.map
[0] multi react-hot-loader/patch ./app 40 bytes {app} [built]
[../node_modules/@babel/runtime/helpers/interopRequireDefault.js] 147 bytes {app} [built]
[../node_modules/@coko/client/src/index.js] 94 bytes {app} [built]
[../node_modules/pubsweet-client/dist/index.js] 2.22 KiB {app} [built]
[../node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[../node_modules/react-hot-loader/dist/react-hot-loader.development.js] 95.3 KiB {app} [built]
[../node_modules/react-hot-loader/index.js] 1.24 KiB {app} [built]
[../node_modules/react-hot-loader/patch.js] 229 bytes {app} [built]
[../node_modules/react/index.js] 190 bytes {app} [built]
[../node_modules/regenerator-runtime/runtime.js] 23.6 KiB {app} [built]
[../node_modules/webpack/buildin/harmony-module.js] 573 bytes {app} [built]
[./app.js] 2.71 KiB {app} [built]
[./routes.js] 2.97 KiB {app} [built]
[./theme.js] 4.24 KiB {app} [built]
[./userContext.js] 2.22 KiB {app} [built]
+ 1231 hidden modules
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 534 KiB 0
Entrypoint undefined = index.html
[../node_modules/html-webpack-plugin/lib/loader.js!./index.ejs] 404 bytes {0} [built]
[../node_modules/lodash/lodash.js] 528 KiB {0} [built]
[../node_modules/webpack/buildin/global.js] 472 bytes {0} [built]
[../node_modules/webpack/buildin/module.js] 497 bytes {0} [built]
ℹ 「wdm」: Compiled successfully.
ℹ 「wdm」: Compiling...
webpack building...
webpack built app abd7f989b8deb7944284 in 2011ms
ℹ 「wdm」: Hash: abd7f989b8deb7944284
Version: webpack 4.42.1
Time: 2011ms
Built at: 04/13/2021 8:20:09 PM
Asset Size Chunks Chunk Names
56e4439525a099158dd7.hot-update.json 35 bytes [emitted] [immutable] [hmr]
app.js 9.36 MiB app [emitted] app
app.js.gz 2.31 MiB [emitted]
app.js.map 8.66 MiB app [emitted] [dev] app
favicon.ico 6.61 KiB [emitted]
index.html 244 bytes [emitted]
Entrypoint app = app.js app.js.map
[0] multi react-hot-loader/patch ./app 40 bytes {app}
[../node_modules/@babel/runtime/helpers/interopRequireDefault.js] 147 bytes {app}
[../node_modules/@coko/client/src/index.js] 94 bytes {app}
[../node_modules/pubsweet-client/dist/index.js] 2.22 KiB {app}
[../node_modules/react-dom/index.js] 1.33 KiB {app}
[../node_modules/react-hot-loader/dist/react-hot-loader.development.js] 95.3 KiB {app}
[../node_modules/react-hot-loader/index.js] 1.24 KiB {app}
[../node_modules/react-hot-loader/patch.js] 229 bytes {app}
[../node_modules/react/index.js] 190 bytes {app}
[../node_modules/regenerator-runtime/runtime.js] 23.6 KiB {app}
[../node_modules/webpack/buildin/harmony-module.js] 573 bytes {app}
[./app.js] 2.71 KiB {app}
[./routes.js] 2.97 KiB {app}
[./theme.js] 4.24 KiB {app}
[./userContext.js] 2.22 KiB {app}
+ 1231 hidden modules
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 534 KiB 1
Entrypoint undefined = index.html
[../node_modules/html-webpack-plugin/lib/loader.js!./index.ejs] 404 bytes {1}
[../node_modules/lodash/lodash.js] 528 KiB {1}
[../node_modules/webpack/buildin/global.js] 472 bytes {1}
[../node_modules/webpack/buildin/module.js] 497 bytes {1}
ℹ 「wdm」: Compiled successfully.