Hi there,
I’m trying to set up a local instance of Aleph, using the Main branch in the GitHub repo (GitHub - alephdata/aleph: Search and browse documents and data; find the people and companies you look for.), following the instructions found here: (Development Environment – Aleph)
After resolving a port conflict issue on port 5432 which had tripped me up for a while, I was able to get “make build” and “make upgrade” to complete successfully. However, whenever I run “make web”, I get a series (20 or more) of “module not found” errors.
Module not found: Error: Can't resolve 'src/screens/ExportsScreen/ExportsScreen' in '/mnt/c/users/justin/documents/github/aleph/ui/src/app'
Running “npm start” in the aleph/ui directory results in the following errors:
`Module not found: Error: Can’t resolve ‘src/app/api’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/actions’
LOG from ./node_modules/sass-loader/dist/cjs.js sass-loader ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[1].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[7].use[4]!./src/components/MappingEditor/MappingVerify.scss
Deprecation This operation is parsed as:
0 - $aleph-grid-size * 0.5
but you may have intended it to mean:
0 (-$aleph-grid-size * 0.5)
Add a space after - to clarify that it’s meant to be a binary operation, or wrap
it in parentheses to make it a unary operation. This will be an error in future
versions of Sass.
More info and automated migrator: Sass: Breaking Change: Strict Unary Operators
null
WARNING in ./node_modules/hast-util-raw/node_modules/entities/lib/esm/decode.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/decode.ts’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/decode.ts’
WARNING in ./node_modules/hast-util-raw/node_modules/entities/lib/esm/decode_codepoint.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/decode_codepoint.ts’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/decode_codepoint.ts’
WARNING in ./node_modules/hast-util-raw/node_modules/entities/lib/esm/escape.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/escape.ts’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/escape.ts’
WARNING in ./node_modules/hast-util-raw/node_modules/entities/lib/esm/generated/decode-data-html.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/generated/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/generated/decode-data-html.ts’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/generated/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/generated/decode-data-html.ts’
WARNING in ./node_modules/hast-util-raw/node_modules/entities/lib/esm/generated/decode-data-xml.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/generated/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/generated/decode-data-xml.ts’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/entities/lib/esm/generated/https:/raw.githubusercontent.com/fb55/entities/61afd4701eaa736978b13c7351cd3de9a96b04bc/src/generated/decode-data-xml.ts’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/index.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/index.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js.map’
WARNING in ./node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js.map’ file: Error: ENOENT: no such file or directory, open ‘/mnt/c/users/justin/documents/github/aleph/ui/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js.map’
WARNING in [eslint]
src/react-ftm/components/EntityTable/TableEditor.tsx
Line 251:19: Expected ‘!==’ and instead saw ‘!=’ eqeqeq
Line 291:19: Expected ‘!==’ and instead saw ‘!=’ eqeqeq
Line 338:19: Expected ‘!==’ and instead saw ‘!=’ eqeqeq
Line 359:19: Expected ‘!==’ and instead saw ‘!=’ eqeqeq
Line 594:21: Expected ‘===’ and instead saw ‘==’ eqeqeq
src/react-ftm/components/NetworkDiagram/layout/tools/getForceData.ts
Line 42:21: Array.prototype.map() expects a return value from arrow function array-callback-return
Line 43:23: Array.prototype.map() expects a return value from arrow function array-callback-return
src/react-ftm/components/NetworkDiagram/toolbox/ToolbarButtonGroup.tsx
Line 33:3: Useless constructor @typescript-eslint/no-useless-constructor
src/react-ftm/editors/EdgeTypeSelect.tsx
Line 30:3: Useless constructor @typescript-eslint/no-useless-constructor
src/react-ftm/embed/EmbeddedElement.tsx
Line 56:9: Unreachable code no-unreachable
src/react-ftm/types/Transliterate.tsx
Line 47:60: Expected ‘!==’ and instead saw ‘!=’ eqeqeq
src/screens/GroupScreen/GroupScreen.jsx
Line 106:21: The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: eslint-plugin-jsx-a11y/docs/rules/anchor-is-valid.md at 743168b1ba15196ec7001c7c1f368f5efbe78f0d · jsx-eslint/eslint-plugin-jsx-a11y · GitHub jsx-a11y/anchor-is-valid
ERROR in ./src/actions/exportActions.js 3:0-39
Module not found: Error: Can’t resolve ‘src/app/api’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/actions’
ERROR in ./src/app/Router.jsx 36:0-68
Module not found: Error: Can’t resolve ‘src/screens/ExportsScreen/ExportsScreen’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/app’
ERROR in ./src/components/Document/DocumentViewMode.jsx 22:47-24:24
Module not found: Error: Can’t resolve ‘src/viewers/PdfViewer’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/components/Document’
ERROR in ./src/components/EntitySearch/FacetedEntitySearch.jsx 13:0-49
Module not found: Error: Can’t resolve ‘src/actions’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/components/EntitySearch’
ERROR in ./src/components/MappingIndex/MappingIndexItem.jsx 13:0-71
Module not found: Error: Can’t resolve ‘src/components/common’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/components/MappingIndex’
ERROR in ./src/components/Notification/Notification.jsx 5:0-123
Module not found: Error: Can’t resolve ‘src/components/common’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/components/Notification’
ERROR in ./src/components/Timeline/EntityViewer2.tsx 4:0-45
Module not found: Error: Can’t resolve ‘src/react-ftm/types’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/components/Timeline’
ERROR in ./src/components/Timeline/EntityViewer2.tsx 7:0-44
Module not found: Error: Can’t resolve ‘src/react-ftm’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/components/Timeline’
ERROR in ./src/dialogs/DocumentUploadDialog/DocumentUploadForm.jsx 8:0-47
Module not found: Error: Can’t resolve ‘src/app/toast’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/dialogs/DocumentUploadDialog’
ERROR in ./src/dialogs/ExportDialog/ExportDialog.jsx 9:0-65
Module not found: Error: Can’t resolve ‘src/app/toast’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/dialogs/ExportDialog’
ERROR in ./src/reducers/exports.js 4:0-43
Module not found: Error: Can’t resolve ‘src/actions’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/reducers’
ERROR in ./src/reducers/exports.js 5:0-82
Module not found: Error: Can’t resolve ‘src/reducers/util’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/reducers’
ERROR in ./src/screens/InvestigationScreen/InvestigationScreen.jsx 15:0-85
Module not found: Error: Can’t resolve ‘src/components/Investigation/InvestigationSidebar’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/screens/InvestigationScreen’
ERROR in ./src/screens/SearchScreen/SearchScreen.jsx 10:0-49
Module not found: Error: Can’t resolve ‘src/actions’ in ‘/mnt/c/users/justin/documents/github/aleph/ui/src/screens/SearchScreen’
webpack compiled with 14 errors and 20 warnings
ERROR in src/components/Timeline/EntityViewer2.tsx:3:24
TS2307: Cannot find module ‘src/react-ftm/types’ or its corresponding type declarations.
1 | import { FC } from ‘react’;
2 | import { Entity } from ‘@alephdata/followthemoney’;
3 | import { Schema } from ‘src/react-ftm/types’;
| ^^^^^^^^^^^^^^^^^^^^^
4 | import { DEFAULT_COLOR } from ‘./Timeline’;
5 | import type { Vertex, FetchEntitySuggestions } from ‘./types’;
6 | import EntityViewerProperties from ‘./EntityViewerProperties’;
ERROR in src/components/Timeline/EntityViewer2.tsx:7:29
TS2307: Cannot find module ‘src/react-ftm’ or its corresponding type declarations.
5 | import type { Vertex, FetchEntitySuggestions } from ‘./types’;
6 | import EntityViewerProperties from ‘./EntityViewerProperties’;
7 | import { ColorPicker } from ‘src/react-ftm’;
| ^^^^^^^^^^^^^^^
8 |
9 | import ‘./EntityViewer2.scss’;
10 |
ERROR in src/components/Timeline/EntityViewer2.tsx:42:24
TS7006: Parameter ‘color’ implicitly has an ‘any’ type.
40 | <ColorPicker
41 | currSelected={currentColor}
42 | onSelect={(color) => onVertexChange({ …vertex, color })}
| ^^^^^
43 | />
44 | )}
45 |
Proxy error: Could not proxy request /favicon.ico from localhost:3000 to http://api:5000/.
See Errors | Node.js v23.2.0 Documentation for more information (ENOTFOUND).`
I am running Docker Desktop for Windows v4.35.1, with WSL integration, and executing commands through WSL.
All of the module files are being copied correctly to the Docker container file structure, but it would appear the path references to the modules are looking for files in the wrong places.
I’m not a developer by training or trade, and am trying to muddle my way through getting set up on Aleph, so any help you can provide would be greatly appreciated. I had wanted to apply to an Aleph account, but I see that applications are currently on hold, so I wanted to set up a local instance to see what Aleph could do. I currently have 2 data sets - 600k political party leaders, and 200k candidates from the 2024 legislative elections - that I’d like to import, and would likely be able to add several hundred campaign donation reports in the weeks ahead, and would like to incorporate public procurement data in the near future. I’m keenly interested in potential corruption and conflicts of interest in Indonesia, having spent the last 13 years working on these issues in Indonesia.
Any help you could provide would be greatly appreciated.
Kind regards,
-Justin