Skip to content

Electron 23 Error: No native build was found for platform=win32 arch=x64 runtime=electron abi=113 uv=1 libc=glibc node=18.12.1 electron=23.1.1 #245

@wwq146213

Description

@wwq146213

开发环境: vite@3.0.5 electron@23.1.1 , node@16.14.2, python@2.7.15, ffi-napi@4.0.3 , ref-napi@3.0.2

ps:都已通过node-gyp rebuild 且文件已经生成
const ffi = require("ffi-napi");

只要使用此方式引入之后 启动时报错

image

切换引入方式

import * as ffi from 'ffi-napi';

再次报错

image

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