mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-04-12 15:40:30 +08:00
fix(operators): Change nodeParser import to require.
This commit is contained in:
parent
f1f2f0a181
commit
d044d1375d
@ -39,7 +39,7 @@ class NodeParser {
|
||||
async init() {
|
||||
await Promise.all(
|
||||
Object.keys(this.operators).map(async (operator) => {
|
||||
const fn = await import(`./${this.operators[operator]}.js`);
|
||||
const fn = require(`./${this.operators[operator]}.js`);
|
||||
this.operations[operator] = fn.default;
|
||||
if (this.operations[operator].init) {
|
||||
await this.operations[operator].init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user