fix import error
This commit is contained in:
parent
caf87bb36d
commit
5e1c369c34
2 changed files with 4 additions and 3 deletions
1
index.js
1
index.js
|
@ -1,5 +1,6 @@
|
|||
import * as server from './server.js';
|
||||
import * as lights from './lights.js';
|
||||
import * as fs from 'fs';
|
||||
|
||||
const cfg = JSON.parse(fs.readFileSync('./config.json'));
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import ws281x from 'rpi-ws281x'
|
||||
import * as fs from 'fs'
|
||||
import Logger, { levels } from './logger.js'
|
||||
import ws281x from 'rpi-ws281x';
|
||||
import * as fs from 'fs';
|
||||
import Logger, { levels } from './logger.js';
|
||||
|
||||
const cfg = JSON.parse(fs.readFileSync('./config.json'));
|
||||
const log = new Logger("lights", cfg.log_level ? levels[cfg.log_level] : levels.INFO);
|
||||
|
|
Loading…
Reference in a new issue