Skip to content

Not so easy to use in VSCode or Electron #94

Closed
@Mabenan

Description

@Mabenan

Hi,

after a day of screaming i finally found the reason why this module doesn't run out of the box with VSCode. The Reason here is that it has to be build with node_module_version 69 or higher. That maybe sounds easy but the problem here is that there is no Node Version with this ABI Version the reason for this can be found here nodejs/TSC#651.

So the easy solution seams to be to compile against ABI Version 72 which is Node Version 12.6.0. This works fine but if you try it the following way

npm install node-rfc@v1.0.0-rc10 --build-from-source

It generates the binding folders with the ABI version. Which results in the folder
win32-x64-node-v72

This folder won't be found at runtime because the module loader searches for the folder
win32-x64-node-v72

A solution for this could be to still generate the folders with version but also generate a folder that doesn't have a version and can be use as fallback in sapnwrfc-client.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions