My version of HedgeDoc is: 1.10.8
What I expected to happen:
After a manual installation on Windows (git clone, bin/setup, yarn build, NODE_ENV=production yarn start), I expected to open http://localhost:3000, log in, create a new note and be able to type in the editor, with the status at the top right showing that I am connected.
What actually happened:
The server starts without errors and I can log in, create notes and see my history, but the editor never connects. Every note shows OFFLINE at the top right and I can't type anything.
Environment:
- OS: Windows 11 (build 10.0.26200)
- Node.js: [PASTE RESULT OF `node --version`]
- Yarn 4.x via corepack (installed by bin/setup)
- Started from Git Bash with NODE_ENV=production yarn start
- Database: SQLite
- Browsers: Firefox 157 and Chrome (same result, also in a private window)
- First installed 1.10.3, then updated with git checkout 1.10.8 + bin/setup: identical behaviour in both versions
config.json (production section):
{
"production": {
"domain": "localhost",
"urlAddPort": true,
"loglevel": "info",
"db": {
"dialect": "sqlite",
"storage": "./db/hedgedoc.sqlite"
}
}
}
Browser console error (on every note page, after a reload):
Uncaught TypeError: can't access property "ot", m is undefined
<anonymous> ot.min.js:1
<anonymous> ot.min.js:1
<anonymous> index-pack.362f896ec213b1436393.js:842
Webpack 9
(With 1.10.3: same error with "h is undefined", index-pack.970c6d2cc3b0461b68a6.js:847. Only the minified variable name changes.)
Server log: all migrations run successfully, "HTTP Server listening at 0.0.0.0:3000", login and /new requests return 200/302. The only warning is that sessionSecret is not set. Opening http://localhost:3000/socket.io/?EIO=3&transport=polling in the browser returns a valid handshake (sid, upgrades: websocket, pingInterval 5000, pingTimeout 10000), so the server side of the realtime connection seems to answer.
The first yarn build printed several webpack warnings "There are multiple modules with names that only differ in casing" (e.g. node_modules/buffer/index.js), because my Git Bash shows the path as .../documents/... while Windows has .../Documents/.... I'm not sure it is related.
I found one other report of the same symptom ("offline" + "Cannot read properties of undefined (reading ot)", version 1.9.9) without a solution.
I already tried:
- Different browsers (Firefox, Chrome), private windows, hard reload (Ctrl+F5)
- Updating from 1.10.3 to 1.10.8, re-running bin/setup, yarn install --immutable and yarn build
- Restarting the server, logging in again, creating several new notes
- Checking that config.json uses SQLite and that the db folder exists