Error is the following:
jessica@JSimRig:~/trizbort$ npm run build
> trizbort.io@1.0.0 build
> grunt build
Running "copy:libraries" (copy) task
Copied 8 files
Running "copy:serviceworker" (copy) task
Copied 1 file
Running "svgstore:default" (svgstore) task
File dist/icons.svg created.
Running "stylus:compile" (stylus) task
>> 1 file created.
(node:59364) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:59364) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:59364) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
Running "ts:default" (ts) task
Compiling...
Fast compile will not work when --out is specified. Ignoring fast compilation
Using tsc v3.8.3
src/App.ts(3,18): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/App.ts(6,38): error TS2305: Module '"popups"' has no exported member 'NotePopup'.
src/Dispatcher.ts(1,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/Editor.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/Editor.ts(7,29): error TS2305: Module '"views"' has no exported member 'BlockView'.
src/Editor.ts(10,22): error TS2307: Cannot find module './util/rect'.
src/Editor.ts(322,49): error TS2339: Property 'x' does not exist on type 'Model'.
src/Editor.ts(322,65): error TS2339: Property 'y' does not exist on type 'Model'.
src/Editor.ts(322,81): error TS2339: Property 'width' does not exist on type 'Model'.
src/Editor.ts(322,101): error TS2339: Property 'height' does not exist on type 'Model'.
src/Exporter.ts(3,29): error TS2305: Module '"views"' has no exported member 'BlockView'.
src/Selection.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/controls/Control.ts(2,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/controls/OptionsGroup.ts(17,66): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/controls/idCheck/idCheck.ts(1,25): error TS2307: Cannot find module '../control'.
src/controls/idCheck/idCheck.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/controls/idCheck/idCheck.ts(16,22): error TS2339: Property 'elem' does not exist on type 'IdCheck'.
src/controls/idCheck/idCheck.ts(19,10): error TS2339: Property 'elem' does not exist on type 'IdCheck'.
src/controls/idCheck/idCheck.ts(23,23): error TS2339: Property 'elem' does not exist on type 'IdCheck'.
src/controls/idColorPicker/idColorPicker.ts(48,14): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/controls/idColorPicker/idColorPicker.ts(57,14): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/controls/idConnectorType/idConnectorType.ts(2,31): error TS2307: Cannot find module '../../enums/connectorType'.
src/controls/idConnectorType/idConnectorType.ts(3,25): error TS2307: Cannot find module '../control'.
src/controls/idConnectorType/idConnectorType.ts(5,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/controls/idConnectorType/idConnectorType.ts(24,10): error TS2339: Property 'elem' does not exist on type 'IdConnectorType'.
src/controls/idConnectorType/idConnectorType.ts(27,57): error TS2339: Property 'elem' does not exist on type 'IdConnectorType'.
src/controls/idConnectorType/idConnectorType.ts(28,47): error TS2339: Property 'elem' does not exist on type 'IdConnectorType'.
src/controls/idConnectorType/idConnectorType.ts(29,49): error TS2339: Property 'elem' does not exist on type 'IdConnectorType'.
src/controls/idConnectorType/idConnectorType.ts(30,47): error TS2339: Property 'elem' does not exist on type 'IdConnectorType'.
src/controls/idConnectorType/idConnectorType.ts(31,51): error TS2339: Property 'elem' does not exist on type 'IdConnectorType'.
src/controls/idInput/idInput.ts(1,25): error TS2307: Cannot find module '../control'.
src/controls/idInput/idInput.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/controls/idInput/idInput.ts(16,22): error TS2339: Property 'elem' does not exist on type 'IdInput'.
src/controls/idInput/idInput.ts(19,10): error TS2339: Property 'elem' does not exist on type 'IdInput'.
src/controls/idInput/idInput.ts(23,23): error TS2339: Property 'elem' does not exist on type 'IdInput'.
src/controls/idLineStyle/idLineStyle.ts(2,30): error TS2307: Cannot find module '../optionsGroup'.
src/controls/idLineStyle/idLineStyle.ts(26,19): error TS2339: Property 'elem' does not exist on type 'IdLineStyle'.
src/controls/idLineStyle/idLineStyle.ts(27,21): error TS2339: Property 'elem' does not exist on type 'IdLineStyle'.
src/controls/idObjectEditor/idObjectEditor.ts(78,55): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/controls/idObjectEditor/idObjectEditor.ts(79,61): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/controls/idObjectEditor/idObjectEditor.ts(80,57): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(1,25): error TS2307: Cannot find module '../control'.
src/controls/idPopup/idPopup.ts(16,29): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(17,26): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(22,10): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(25,21): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(28,26): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(53,22): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(58,10): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(67,51): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(91,17): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(96,12): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idPopup/idPopup.ts(98,12): error TS2339: Property 'elem' does not exist on type 'IdPopup'.
src/controls/idQuickColor/idQuickColor.ts(23,13): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/controls/idRadio/idRadio.ts(1,25): error TS2307: Cannot find module '../control'.
src/controls/idRadio/idRadio.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/controls/idRadio/idRadio.ts(16,22): error TS2339: Property 'elem' does not exist on type 'IdRadio'.
src/controls/idRadio/idRadio.ts(19,21): error TS2339: Property 'elem' does not exist on type 'IdRadio'.
src/controls/idRadio/idRadio.ts(22,10): error TS2339: Property 'elem' does not exist on type 'IdRadio'.
src/controls/idRadio/idRadio.ts(26,23): error TS2339: Property 'elem' does not exist on type 'IdRadio'.
src/controls/idRange/idRange.ts(1,25): error TS2307: Cannot find module '../control'.
src/controls/idRange/idRange.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/controls/idRange/idRange.ts(23,20): error TS2339: Property 'elem' does not exist on type 'IdRange'.
src/controls/idRange/idRange.ts(25,20): error TS2339: Property 'elem' does not exist on type 'IdRange'.
src/controls/idRange/idRange.ts(29,22): error TS2339: Property 'elem' does not exist on type 'IdRange'.
src/controls/idRange/idRange.ts(32,10): error TS2339: Property 'elem' does not exist on type 'IdRange'.
src/controls/idRange/idRange.ts(33,23): error TS2339: Property 'elem' does not exist on type 'IdRange'.
src/controls/idRange/idRange.ts(34,23): error TS2339: Property 'elem' does not exist on type 'IdRange'.
src/controls/idShape/idShape.ts(2,30): error TS2307: Cannot find module '../optionsGroup'.
src/controls/idShape/idShape.ts(19,19): error TS2339: Property 'elem' does not exist on type 'IdShape'.
src/controls/idTextarea/idTextarea.ts(1,25): error TS2307: Cannot find module '../control'.
src/controls/idTextarea/idTextarea.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/controls/idTextarea/idTextarea.ts(16,22): error TS2339: Property 'elem' does not exist on type 'IdTextarea'.
src/controls/idTextarea/idTextarea.ts(19,10): error TS2339: Property 'elem' does not exist on type 'IdTextarea'.
src/controls/idTextarea/idTextarea.ts(23,26): error TS2339: Property 'elem' does not exist on type 'IdTextarea'.
src/controls/idToast/idToast.ts(1,25): error TS2307: Cannot find module '../control'.
src/controls/idToast/idToast.ts(17,10): error TS2339: Property 'elem' does not exist on type 'IdToast'.
src/controls/idToast/idToast.ts(20,23): error TS2339: Property 'elem' does not exist on type 'IdToast'.
src/controls/idToast/idToast.ts(21,22): error TS2339: Property 'elem' does not exist on type 'IdToast'.
src/controls/idToast/idToast.ts(24,10): error TS2339: Property 'elem' does not exist on type 'IdToast'.
src/controls/idToast/idToast.ts(28,10): error TS2339: Property 'elem' does not exist on type 'IdToast'.
src/controls/idToast/idToast.ts(33,10): error TS2339: Property 'elem' does not exist on type 'IdToast'.
src/controls/idToast/idToast.ts(37,12): error TS2339: Property 'elem' does not exist on type 'IdToast'.
src/controls/idToast/idToast.ts(39,12): error TS2339: Property 'elem' does not exist on type 'IdToast'.
src/enums/index.ts(1,15): error TS2307: Cannot find module './AppEvent'.
src/models/Model.ts(2,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/models/Model.ts(3,21): error TS2307: Cannot find module './map'.
src/models/Obj.ts(2,23): error TS2307: Cannot find module './model'.
src/models/Obj.ts(13,10): error TS2339: Property '_type' does not exist on type 'Obj'.
src/models/Obj.ts(52,10): error TS2339: Property 'setDirty' does not exist on type 'Obj'.
src/models/Obj.ts(67,10): error TS2339: Property 'setDirty' does not exist on type 'Obj'.
src/models/Obj.ts(82,10): error TS2339: Property 'setDirty' does not exist on type 'Obj'.
src/models/Obj.ts(98,10): error TS2339: Property 'setDirty' does not exist on type 'Obj'.
src/models/Room.ts(321,32): error TS7006: Parameter 'model' implicitly has an 'any' type.
src/models/Room.ts(351,38): error TS7006: Parameter 'conn' implicitly has an 'any' type.
src/panels/Panel.ts(1,21): error TS2307: Cannot find module '../app'.
src/panels/blockPanel/BlockPanel.ts(2,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/panels/blockPanel/BlockPanel.ts(23,58): error TS2339: Property 'addEventListener' does not exist on type 'IdShape'.
src/panels/blockPanel/BlockPanel.ts(23,127): error TS2339: Property 'value' does not exist on type 'IdShape'.
src/panels/blockPanel/BlockPanel.ts(25,70): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/panels/blockPanel/BlockPanel.ts(25,147): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/blockPanel/BlockPanel.ts(53,24): error TS2339: Property 'value' does not exist on type 'IdShape'.
src/panels/blockPanel/BlockPanel.ts(54,28): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/connectorPanel/ConnectorPanel.ts(2,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/panels/connectorPanel/ConnectorPanel.ts(33,70): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/panels/connectorPanel/ConnectorPanel.ts(33,151): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/connectorPanel/ConnectorPanel.ts(60,28): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/mapPanel/MapPanel.ts(2,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/panels/menuPanel/MenuPanel.ts(4,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/panels/notePanel/NotePanel.ts(2,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/panels/notePanel/NotePanel.ts(25,70): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/panels/notePanel/NotePanel.ts(25,146): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/notePanel/NotePanel.ts(27,58): error TS2339: Property 'addEventListener' does not exist on type 'IdShape'.
src/panels/notePanel/NotePanel.ts(27,126): error TS2339: Property 'value' does not exist on type 'IdShape'.
src/panels/notePanel/NotePanel.ts(55,24): error TS2339: Property 'value' does not exist on type 'IdShape'.
src/panels/notePanel/NotePanel.ts(56,28): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/renderPanel/RenderPanel.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/panels/renderPanel/RenderPanel.ts(98,67): error TS2339: Property 'addEventListener' does not exist on type 'IdShape'.
src/panels/renderPanel/RenderPanel.ts(98,151): error TS2339: Property 'value' does not exist on type 'IdShape'.
src/panels/renderPanel/RenderPanel.ts(99,69): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/panels/renderPanel/RenderPanel.ts(99,156): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/renderPanel/RenderPanel.ts(118,79): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/panels/renderPanel/RenderPanel.ts(118,176): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/renderPanel/RenderPanel.ts(126,67): error TS2339: Property 'addEventListener' does not exist on type 'IdShape'.
src/panels/renderPanel/RenderPanel.ts(126,151): error TS2339: Property 'value' does not exist on type 'IdShape'.
src/panels/renderPanel/RenderPanel.ts(128,69): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/panels/renderPanel/RenderPanel.ts(128,156): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/renderPanel/RenderPanel.ts(146,69): error TS2339: Property 'addEventListener' does not exist on type 'IdShape'.
src/panels/renderPanel/RenderPanel.ts(146,155): error TS2339: Property 'value' does not exist on type 'IdShape'.
src/panels/renderPanel/RenderPanel.ts(148,71): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/panels/renderPanel/RenderPanel.ts(148,160): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/renderPanel/RenderPanel.ts(224,11): error TS2740: Type 'DiagramTheme' is missing the following properties from type 'MapSettings': basic, grid, room, connector, and 4 more.
src/panels/roomPanel/RoomPanel.ts(2,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/panels/roomPanel/RoomPanel.ts(45,70): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/panels/roomPanel/RoomPanel.ts(45,146): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/roomPanel/RoomPanel.ts(49,58): error TS2339: Property 'addEventListener' does not exist on type 'IdShape'.
src/panels/roomPanel/RoomPanel.ts(49,126): error TS2339: Property 'value' does not exist on type 'IdShape'.
src/panels/roomPanel/RoomPanel.ts(182,24): error TS2339: Property 'value' does not exist on type 'IdShape'.
src/panels/roomPanel/RoomPanel.ts(185,28): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/panels/toolPanel/ToolPanel.ts(2,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/popups/Popup.ts(1,21): error TS2307: Cannot find module '../app'.
src/popups/blockPopup/BlockPopup.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/popups/blockPopup/BlockPopup.ts(5,10): error TS2305: Module '"views"' has no exported member 'BlockView'.
src/popups/blockPopup/BlockPopup.ts(23,42): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/popups/blockPopup/BlockPopup.ts(24,40): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/popups/blockPopup/BlockPopup.ts(27,70): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/popups/blockPopup/BlockPopup.ts(27,147): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/popups/blockPopup/BlockPopup.ts(69,26): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/popups/connectorPopup/ConnectorPopup.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/popups/connectorPopup/ConnectorPopup.ts(23,42): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/popups/connectorPopup/ConnectorPopup.ts(24,40): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/popups/connectorPopup/ConnectorPopup.ts(28,70): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/popups/connectorPopup/ConnectorPopup.ts(28,151): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/popups/connectorPopup/ConnectorPopup.ts(53,26): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/popups/index.ts(5,15): error TS2307: Cannot find module './notePopup/NotePopup'.
src/popups/notePopup/notePopup.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/popups/notePopup/notePopup.ts(25,42): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/popups/notePopup/notePopup.ts(26,40): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/popups/notePopup/notePopup.ts(30,70): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/popups/notePopup/notePopup.ts(30,146): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/popups/notePopup/notePopup.ts(73,26): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/popups/roomPopup/RoomPopup.ts(3,10): error TS2305: Module '"enums"' has no exported member 'AppEvent'.
src/popups/roomPopup/RoomPopup.ts(26,42): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/popups/roomPopup/RoomPopup.ts(27,40): error TS2339: Property 'addEventListener' does not exist on type 'IdPopup'.
src/popups/roomPopup/RoomPopup.ts(52,70): error TS2339: Property 'addEventListener' does not exist on type 'IdLineStyle'.
src/popups/roomPopup/RoomPopup.ts(52,146): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/popups/roomPopup/RoomPopup.ts(74,26): error TS2339: Property 'value' does not exist on type 'IdLineStyle'.
src/themes/DiagramTheme.ts(1,29): error TS2307: Cannot find module '../models/mapSettings'.
src/views/ConnectorView.ts(7,23): error TS2307: Cannot find module '../util/point'.
src/views/View.ts(3,22): error TS2307: Cannot find module '../util/rect'.
src/views/index.ts(4,15): error TS2307: Cannot find module './Blockview'.
>> 171 non-emit-preventing type warnings
>> Error: tsc return code: 1
Warning: Task "ts:default" failed. Use --force to continue.
Aborted due to warnings.
EDIT 1: To clarify, this was done on node v18.16.1, and this is also what I got when attempting this on v14.17.
EDIT 1b: Also just tried this with your exact version of node, and got the same errors, too.
EDIT 2: Here is the dev dependency list that was created:
"express": "^4.17.1",
"grunt": "^1.1.0",
"grunt-cli": "^1.4.3",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-stylus": "^1.2.0",
"grunt-contrib-uglify": "^4.0.1",
"grunt-contrib-watch": "^1.1.0",
"grunt-handlebars-compiler": "^0.3.1",
"grunt-svgstore": "^2.0.0",
"grunt-ts": "^6.0.0-beta.22",
"handlebars": "^4.7.6",
"typescript": "^3.8.3"