ReferenceError: app is not defined
at startServer (file:///Users/<username>/.nvm/versions/node/v19.5.0/lib/node_modules/flok-web/server.js:18:7)
After patching Users/<username>/.nvm/versions/node/v19.5.0/lib/node_modules/flok-web/server.js with the missing line const app = express(); the error is gone but serving from the directory still doesn't work. Serving from the default location (/Users/<username>/.nvm/versions/node/v19.5.0/lib/node_modules/flok-web/dist) works.
To verify, put different images into the default location and the additional location and test with hydra:
Hey! Sorry for not responding earlier. I know it's been a long time, but I fixed a couple of things in the server last week. Feel free to reopen if this is still an issue.
to reproduce
npm install -g flok-repl flok-web
flok-web --static-dir <some-dir>
throws an error.
After patching
Users/<username>/.nvm/versions/node/v19.5.0/lib/node_modules/flok-web/server.js
with the missing lineconst app = express();
the error is gone but serving from the directory still doesn't work. Serving from the default location (/Users/<username>/.nvm/versions/node/v19.5.0/lib/node_modules/flok-web/dist
) works.To verify, put different images into the default location and the additional location and test with hydra:
MacOS, node v19.5.0