Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Known local error messages with solutions

Nikolai Riedel edited this page Aug 14, 2019 · 9 revisions

This is a non-extensive list of issues that more people have encountered when running the solution locally

Please add your error messages to this list, if you think they are common.

Unresolved common-react-ui dependency

When trying to run the frontend you get the message: index.js:6:26: Cannot resolve dependency '@ifrc-cbs/common-react-ui'

Solution:

  • Go to Source/Navigation/Web.Commons do "npm install"
  • Go to Source/Navigation/Web.Nodejs do "npm install"
  • Go to Source/..bounded context../Web do "npm install"

Unhandled promise rejection

When trying to run the frontend you get the message (node:17884) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module './lib/fs'

Solution: Update your version of node to version 8 or newer.

Ref: https://github.com/parcel-bundler/parcel/issues/2533

Can't run npm install

Npm install doesn't work. If you are on Windows some bounded contexts demands that you run npm install in a console that supports cp.

Solution: Switch to ie. Git Bash and try to run the command again

This experimental syntax requires enabling the parser plugin

[parcel:dev ] × C:\....\Source\Alerts\Web\node_modules\@dolittle\queries\dist\esmodule\Query.js:10:16: This experimental syntax requires enabling the parser plugin: 'classProperties' (10:16)

Solution: There is an issue in Dolittle. Until doLittle has fixed an issue be aware that all references in frontend to their queries and commands needs to be fixed manually. This affects the files in Web/Features

When they generate proxies, in the top of their files they import @dolittle/commands and @dolittle/queries depending on the domain model. To fix it change them to @dolittle/commands/dist/commonjs and @dolittle/queries/dist/commonjs. Afterwards you will probably have to restart your frontend with "npm start". (edited)

docker-compose fails with TimeoutException

When running docker-compose up the mongoDB instance never starts because it complains about no more storage space on device. This makes all the bounded contexts crash when trying to connect to it.

Solution: Remove all exited and dangling docker containers to free up space.
docker rm $(docker ps -q -f 'status=exited')
docker rmi $(docker images -q -f "dangling=true")\

Filenames too long on Windows machines

Git throws an error saying the filename is too long when one runs git clone.

Problem: https://github.com/msysgit/git/pull/110 and https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows

Solution: Run CMD with adminstrator rights and enter "git config --system core.longpaths true" (w/o ""). Maybe you also have to enabel long file paths in windows as described here: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file at "Enable Long Paths in Windows 10, Version 1607, and Later".