Replies: 1 comment
-
|
Esm is not supported for now #87 PR welcome if you know how to fix it :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When adding "main": "./dist/main.node" to package.json, the following error occurs:
App threw an error during loadTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".node" for D:\xia\code\electron-build-update-demo\dist\main.nodeat Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:220:9)at defaultGetFormat (node:internal/modules/esm/get_format:246:36)at defaultLoad (node:internal/modules/esm/load:119:22)at async ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:580:32)at async ModuleJob._link (node:internal/modules/esm/module_job:154:19)
It simply doesn't work at all. It seems the default module system is ESM, which cannot load a .node file as an entry point.
Beta Was this translation helpful? Give feedback.
All reactions