sbs20 / scanservjs

SANE scanner nodejs web ui
https://sbs20.github.io/scanservjs/
GNU General Public License v2.0
686 stars 137 forks source link

Incorrect guide for `config.local.js` #692

Closed ceskyDJ closed 7 months ago

ceskyDJ commented 7 months ago

Describe the bug When I use the guide presented on https://sbs20.github.io/scanservjs/docs/10-configuration.html, so I add const Process = require('../server/classes/process'); to my config.local.js from v2, it stops working.

To Reproduce Steps to reproduce the behavior:

  1. Use working config from scanservjs v2
  2. Add const Process = require('../server/classes/process'); to config.local.js
  3. Scanservjs service fails to start

Expected behavior It works without an error while config parsing process.

Server (please complete the following information):

ceskyDJ commented 7 months ago

It works without the const Process = require('../server/classes/process');, btw.