Trizbort Download?

I’m running Linux, so the C# offline version of Trizbort neither compiles nor runs.

However, is there a recommended way to download the web app version (Trizbort.io)? I’m really uncomfortable with regularly using tools that are stored on a server elsewhere, mostly due to internet outages. If I’m adding a web app to my usual tool set, I’d rather have a local copy of the HTML, and run it from there. Sometimes when downloading through “save as…” there can be a lot of bugs introduced, because the page modifies itself on load.

Thanks!

6 Likes

If you find a way, let me know. I’ve missed Trizbort ever since I switched to Linux ages ago.

1 Like

I’m gonna try and download the repo, and build the web app locally first. Will report the success/fail results momentarily.

1 Like

There are instructions to use trizbort.io in offline mode here, have not tried them myself.

Maybe I could get you interested in draw.io. It has both web-app and electron packaged offline versions for Windows/Mac/Linux.

Edit: You already knew the repo location, sorry for the first part of my post.

2 Likes

Currently trying this, but there are some technical challenges. I’m documenting my process, in case I get it working.

You’re valid, lol.

I’m actually currently using IFMapper, but the need to frequently resize the map is getting to me. I’ve used draw.io before, but if I can get something more specialized working, then I’ll use that.

However, if Trizbort does not cooperate, then I’ll definitely try using draw.io again, as it’s a handy and multi-purpose program.

1 Like

Update: It seems like the build instructions on the GitHub are from a 3-year-old dev environment, which uses dependencies that are no longer supported in the same way on Node.js. I’m currently investigating and trying to find historical clues to figure out how to replicate the original dev environment from the web apps last successful build.

Unfortunately, the instructions on GitHub don’t specify these things, and assume you already have the same dev environment in place.

1 Like

I have no problem building it from the repo. What are your issues?
The only thing I have changed from the instructions is grunt build => npm run build (because grunt is installed locally and not globally).

git clone url.git
cd trizbort
npm i
npm run build
npm run start:dev

I have node 20.3.0 / npm 9.6.7.

1 Like

Let me get a clean repo clone on my computer, and I’ll try using 18.16.1, which is listed as the latest LTS version. Apparently the latest I have installed is 14.17 and I’ve been trying this with 10.24.1 (according to clues I found online), along with a locally-installed grunt version (rolled back to cli version 1.4.1, also according to what I was reading online).

I’ll report back with the errors I was getting, because they seem to change between node versions. I think it was an issue of liftup/liftoff not being available, even after I explicitly installed it, but I’ll post the actual report in a moment.

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"

I have the same deps from the package.json, except for grunt-cli which isn’t needed. (npm run build uses the grunt from node_modules).
Did you remove the node_modules directory when you changed the node/npm versions?
In case we are not building the same thing for some reason, I am on commit 1052b285069b9e32067beb39a3a9a4449270f2f2

1 Like

FYI, I had this message when npm installing:

npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile

Mine reads
1052b285069b9e32067beb39a3a9a4449270f2f2
so that’s the same.

Okay, I have uninstalled grunt-cli.

I’ve also removed the node_modules directory and ran npm i for good measure.

Re-ran the build script, and the same errors appeared as before.

My installation gave me this:

jessica@JSimRig:~/trizbort$ npm i
npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies

EDIT: I wiped the cloned directory and started over. npm i gave me the same errors as above, but these preceded them this time:

npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 

For what it’s worth.

UPDATE: I tried two fresh installs, using npm audit fix for one, and then npm audit fix --force for another, and both times the attempt to build caused the same long list of errors as before.

My complete log from scratch:

$ node -v
v20.3.0

$ npm -v
9.6.7

$ git clone https://github.com/henck/trizbort.git
Clonage dans 'trizbort'...
remote: Enumerating objects: 2705, done.
remote: Counting objects: 100% (533/533), done.
remote: Compressing objects: 100% (242/242), done.
remote: Total 2705 (delta 303), reused 508 (delta 288), pack-reused 2172
Réception d'objets: 100% (2705/2705), 4.00 Mio | 2.89 Mio/s, fait.
Résolution des deltas: 100% (1657/1657), fait.

$ cd trizbort

$ npm i
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies

added 395 packages, and audited 396 packages in 14s

3 packages are looking for funding
  run `npm fund` for details

30 vulnerabilities (5 moderate, 19 high, 6 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

$ 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:14493) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:14493) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14493) 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



TypeScript compilation complete: 3.95s for 94 TypeScript files.

Running "handlebars:compile" (handlebars) task
File "dist/handlebars.js" created.

Running "uglify:default" (uglify) task
>> 1 file created 610.77 kB → 249.84 kB

Done.
1 Like

My complete log from scratch, as well:

jessica@JSimRig:~$ node -v
v18.16.1
jessica@JSimRig:~$ npm -v
9.5.1
jessica@JSimRig:~$ git clone https://github.com/henck/trizbort && cd trizbort
Cloning into 'trizbort'...
remote: Enumerating objects: 2705, done.
remote: Counting objects: 100% (533/533), done.
remote: Compressing objects: 100% (242/242), done.
remote: Total 2705 (delta 303), reused 508 (delta 288), pack-reused 2172
Receiving objects: 100% (2705/2705), 4.00 MiB | 11.45 MiB/s, done.
Resolving deltas: 100% (1657/1657), done.
jessica@JSimRig:~/trizbort$ npm i
npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies

added 391 packages, and audited 392 packages in 7s

3 packages are looking for funding
  run `npm fund` for details

30 vulnerabilities (5 moderate, 19 high, 6 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
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:67040) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:67040) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:67040) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:67040) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:67040) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:67040) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:67040) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:67040) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:67040) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:67040) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:67040) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:67040) 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.

I’m gonna run our logs through diffchecker and see what comes up. I need to eat first. I’ll post an update on what I find.

I’ll say for the record that I don’t have as much Node.js dev experience, compared to Java and C#, so I apologize if I’m missing anything obvious.

I am an idiot and should have eaten first

Okay, actually, this was the only difference I could find (other than yours went to success and mine aborted with errors), so it took little time to track down.

It happens here. (This is from your log file)

Running "stylus:compile" (stylus) task
>> 1 file created.
(node:14493) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:14493) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14493) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency

Everywhere that yours says (node:14493), mine says (node:67040). I’m not entirely certain what this means…

Our versions were:

Mine:  node v18.16.1, npm 9.5.1
Yours: node v20.3.0,  npm 9.6.7

EDIT: Okay, I tried it again, and now it reads (node:67400). I think it’s a clock value.

The actual difference is here, now that I’ve had something to eat, and my blood sugar has returned:

Yours:
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies

added 395 packages, and audited 396 packages in 14s

Mine:
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies

added 391 packages, and audited 392 packages in 7s

Yours has this extra line:

npm WARN deprecated fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2

and shows 4 additional packages on the “added” and “audited” counters.

The fsevents line is because I’m on a Mac and you’re not (I guess). It’s a mac-only package, it shouldn’t be the source of the issue.

Your build fails because of Typescript warnings. tsc says the warnings are not preventing code emission
(but the config does) so you could force it. Try setting noEmitOnError to false in tsconfig.json.

I don’t understand why TS pass on my setup and not on yours since we use the same version…

1 Like

Done. Still the same list of errors.

For what it’s worth, I also tried changing the build script to grunt build --force, and I got this at the end:

>> 171 non-emit-preventing type warnings  
>> Error: tsc return code: 2
Warning: Task "ts:default" failed. Used --force, continuing.

Running "handlebars:compile" (handlebars) task
File "dist/handlebars.js" created.

Running "uglify:default" (uglify) task
>> 1 file created 610.71 kB → 249.78 kB

Done, but with warnings.

I tried doing npm run start:dev and connecting to it, but I get a really bugged web page, and this error in the terminal:

Example app listening on port 3000!
Error: ENOENT: no such file or directory, stat '/home/jessica/trizbort/App'

I think I know what’s going on.
The developer must be on mac and has a case-insensitive filesystem (the default on mac).

There’s a bunch of imports with an incorrect case. For example, on your system, TS doesn’t find the module ‘…/control’ because it’s named Control with a capital C. It only works on my machine because Mac doesn’t care.

Have fun fixing these incorrect paths, it should work after that!

6 Likes