Skip to content

Packaging won't work with ES modules #20

@Bizarrus

Description

@Bizarrus
(node:5636) Warning: Failed to load the ES module: ./main.mjs. Make sure to set "type": "module" in the nearest package.json file or use the .mjs extension.
(Use `LCDDIGI --trace-warnings ...` to show where the warning was created)
./main.mjs:1
import { fork } from 'node:child_process';
^^^^^^
{
  "type": "module",
  "main": "main.mjs",
  "scripts": {
    "run": "node .",
    "build": "webview --build --input ./main.mjs --output ./dist --name \"LCD DIGI\" --resources ./resources.json"
  },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions