-
Notifications
You must be signed in to change notification settings - Fork 16
Description
OpenIM Server Version
3.8.3-patch.10
Operating System and CPU Architecture
Windows (AMD)
Deployment Method
Source Code Deployment
Bug Description and Steps to Reproduce
npm run dev 代码报错 提示内容为koffi
Screenshots Link
PS D:\code\Open-IM-PC-Web-Demo> npm run dev
[email protected] dev
vite --force --host
build.terserOptions is specified but build.minify is not set to use Terser. Note Vite now defaults to use esbuild for minification. If you still prefer Terser, set build.minify to "terser".
Forced re-optimization of dependencies
VITE v4.5.14 ready in 336 ms
➜ Local: http://localhost:3000/
➜ Network: http://192.168.1.182:3000/
➜ press h to show help
[write] 12:19:17 dist-electron\constants\index.js
[write] 12:19:17 dist-electron\i18n\index.js
[write] 12:19:17 dist-electron\main\appManage.js
[write] 12:19:17 dist-electron\main\index.js
[write] 12:19:17 dist-electron\main\ipcHandlerManage.js
[write] 12:19:17 dist-electron\main\menuManage.js
[write] 12:19:17 dist-electron\main\shortcutManage.js
[write] 12:19:17 dist-electron\main\storeManage.js
[write] 12:19:17 dist-electron\main\trayManage.js
[write] 12:19:17 dist-electron\main\updateManage.js
[write] 12:19:17 dist-electron\main\windowManage.js
[write] 12:19:17 dist-electron\preload\index.js
[write] 12:19:17 dist-electron\utils\imsdk.js
[write] 12:19:17 dist-electron\utils\index.js
[write] 12:19:17 dist-electron\utils\log.js
[write] 12:19:17 dist-electron\utils\notification.js
[write] 12:19:17 dist-electron\i18n\resources\en-US.js
[write] 12:19:17 dist-electron\i18n\resources\zh-CN.js
[write] 12:19:17 dist-electron\main\components\TrayMenu.js
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_riscv64hf64/koffi.node
node_modules/koffi/index.js:493:25:
493 │ native = require("./build/koffi/linux_riscv64hf64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/win32_arm64/koffi.node
node_modules/koffi/index.js:513:25:
513 │ native = require("./build/koffi/win32_arm64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/win32_x64/koffi.node
node_modules/koffi/index.js:523:25:
523 │ native = require("./build/koffi/win32_x64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/darwin_arm64/koffi.node
node_modules/koffi/index.js:453:25:
453 │ native = require("./build/koffi/darwin_arm64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/freebsd_ia32/koffi.node
node_modules/koffi/index.js:468:25:
468 │ native = require("./build/koffi/freebsd_ia32/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_arm32hf/koffi.node
node_modules/koffi/index.js:478:25:
478 │ native = require("./build/koffi/linux_arm32hf/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/win32_ia32/koffi.node
node_modules/koffi/index.js:518:25:
518 │ native = require("./build/koffi/win32_ia32/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/freebsd_arm64/koffi.node
node_modules/koffi/index.js:463:25:
463 │ native = require("./build/koffi/freebsd_arm64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/freebsd_x64/koffi.node
node_modules/koffi/index.js:473:25:
473 │ native = require("./build/koffi/freebsd_x64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_arm64/koffi.node
node_modules/koffi/index.js:483:25:
483 │ native = require("./build/koffi/linux_arm64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/openbsd_ia32/koffi.node
node_modules/koffi/index.js:503:25:
503 │ native = require("./build/koffi/openbsd_ia32/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/darwin_x64/koffi.node
node_modules/koffi/index.js:458:25:
458 │ native = require("./build/koffi/darwin_x64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_x64/koffi.node
node_modules/koffi/index.js:498:25:
498 │ native = require("./build/koffi/linux_x64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_ia32/koffi.node
node_modules/koffi/index.js:488:25:
488 │ native = require("./build/koffi/linux_ia32/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] No loader is configured for ".node" files: node_modules/koffi/build/koffi/openbsd_x64/koffi.node
node_modules/koffi/index.js:508:25:
508 │ native = require("./build/koffi/openbsd_x64/koffi.node");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12:19:18.107 (ipcMain) > setUpdateListener
i18n resources loaded successfully
12:19:18.171 (ipcMain) > Electron loading URL: D:\code\Open-IM-PC-Web-Demo\public\icons\icon.ico
12:19:18.188 (ipcMain) > OpenIM SDK initialized: http://localhost:3000
12:19:18.191 (ipcMain) > [createTray] Creating system tray
12:19:18.192 (ipcMain) > [createTray] Tray icon path: D:\code\Open-IM-PC-Web-Demo\public\icons\icon.ico
12:19:18.212 (ipcMain) > [createTray] System tray created successfully with custom menu
D:\code\Open-IM-PC-Web-Demo\node_modules\esbuild\lib\main.js:1649
let error = new Error(${text}${summary}
);
^
Error: Build failed with 15 errors:
node_modules/koffi/index.js:453:25: ERROR: No loader is configured for ".node" files: node_modules/koffi/build/koffi/darwin_arm64/koffi.node
node_modules/koffi/index.js:458:25: ERROR: No loader is configured for ".node" files: node_modules/koffi/build/koffi/darwin_x64/koffi.node
node_modules/koffi/index.js:463:25: ERROR: No loader is configured for ".node" files: node_modules/koffi/build/koffi/freebsd_arm64/koffi.node
node_modules/koffi/index.js:468:25: ERROR: No loader is configured for ".node" files: node_modules/koffi/build/koffi/freebsd_ia32/koffi.node
node_modules/koffi/index.js:473:25: ERROR: No loader is configured for ".node" files: node_modules/koffi/build/koffi/freebsd_x64/koffi.node
...
at failureErrorWithLog (D:\code\Open-IM-PC-Web-Demo\node_modules\esbuild\lib\main.js:1649:15)
at D:\code\Open-IM-PC-Web-Demo\node_modules\esbuild\lib\main.js:1058:25
at D:\code\Open-IM-PC-Web-Demo\node_modules\esbuild\lib\main.js:1525:9
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
errors: [
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 39,
line: 453,
lineText: ' native = require("./build/koffi/darwin_arm64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/darwin_arm64/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 37,
line: 458,
lineText: ' native = require("./build/koffi/darwin_x64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/darwin_x64/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 40,
line: 463,
lineText: ' native = require("./build/koffi/freebsd_arm64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/freebsd_arm64/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 39,
line: 468,
lineText: ' native = require("./build/koffi/freebsd_ia32/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/freebsd_ia32/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 38,
line: 473,
lineText: ' native = require("./build/koffi/freebsd_x64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/freebsd_x64/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 40,
line: 478,
lineText: ' native = require("./build/koffi/linux_arm32hf/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_arm32hf/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 38,
line: 483,
lineText: ' native = require("./build/koffi/linux_arm64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_arm64/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 37,
line: 488,
lineText: ' native = require("./build/koffi/linux_ia32/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_ia32/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 44,
line: 493,
lineText: ' native = require("./build/koffi/linux_riscv64hf64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_riscv64hf64/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 36,
line: 498,
lineText: ' native = require("./build/koffi/linux_x64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/linux_x64/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 39,
line: 503,
lineText: ' native = require("./build/koffi/openbsd_ia32/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/openbsd_ia32/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 38,
line: 508,
lineText: ' native = require("./build/koffi/openbsd_x64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/openbsd_x64/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 38,
line: 513,
lineText: ' native = require("./build/koffi/win32_arm64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/win32_arm64/koffi.node'
},
{
detail: undefined,
id: '',
location: {
column: 25,
file: 'node_modules/koffi/index.js',
length: 37,
line: 518,
lineText: ' native = require("./build/koffi/win32_ia32/koffi.node");',
line: 518,
lineText: ' native = require("./build/koffi/win32_ia32/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/win32_ia32/koffi.node'
},
{
detail: undefined,
id: '',
location: {
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/win32_ia32/koffi.node'
},
{
detail: undefined,
id: '',
location: {
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/win32_ia32/koffi.node'
},
{
detail: undefined,
id: '',
location: {
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/win32_ia32/koffi.node'
},
{
detail: undefined,
id: '',
location: {
{
detail: undefined,
id: '',
location: {
id: '',
location: {
column: 25,
column: 25,
file: 'node_modules/koffi/index.js',
file: 'node_modules/koffi/index.js',
length: 36,
length: 36,
line: 523,
lineText: ' native = require("./build/koffi/win32_x64/koffi.node");',
namespace: '',
suggestion: ''
},
notes: [],
pluginName: '',
text: 'No loader is configured for ".node" files: node_modules/koffi/build/koffi/win32_x64/koffi.node'
}
],
warnings: []
}
Node.js v22.17.0