Hobbyist programmer from Belgium π«πΊπ currently located in Thailand π.
Trying to build cool stuff in my spare time.
Obviously open source ππ.
If you like what I do consider checking out my GitHub Sponsors page π€.
NodeRT but precompiled (use WinRT API directly from node)
License: Other
Hobbyist programmer from Belgium π«πΊπ currently located in Thailand π.
Trying to build cool stuff in my spare time.
Obviously open source ππ.
If you like what I do consider checking out my GitHub Sponsors page π€.
I know this package is ESM-only (as node ecosystem should be), but I am wondering how I could make it work in a CJS environment. Won't mind forking and doing the edits just for my project. I am using the package in an electron app - and due to the nature of electron and the electron flavour I am using (vite), I can't transform the main process into esm, so I am stuck with cjs.
Initially tried to do dynamic import: await import('...')
which works in development, but the moment I try it in production, it fails:
UnhandledPromiseRejectionWarning: TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:213:9)
at subscribeToGeolocation (evalmachine.<anonymous>:1:4739)
at evalmachine.<anonymous>:1:456440
The code is obfuscated in production btw (bytecode) and then loaded by node vm: https://www.mo4tech.com/electron-code-protection-solution-based-on-node-js-addon-and-v8-bytecode.html
But it seems that process breaks dynamic imports, so now I am stuck with trying to make it work with CJS instead. Thank you for this package btw π, much appreciated
Currently prebuild download fails for ABI 116
Hello π, how is nodert packaged with electron? Everytime I package it normally and build it, then attempt to run the installed, native app, I get an error about missing imports. Using it in dev and preview works, but packaging it seems to break the package
Hello π, using this is an electron file. I get error that a particular constructor is undefined
. Logging that particular namespace yielded a lot of undefined objects:
[Module: null prototype] {
AltitudeReferenceSystem: undefined,
CivicAddress: undefined,
GeoboundingBox: undefined,
Geocircle: undefined,
Geocoordinate: undefined,
GeocoordinateSatelliteData: undefined,
GeolocationAccessStatus: undefined,
Geolocator: undefined,
// ...
}
I am using electron v30, and the *.node
files seem in order. I am not sure whether I was meant to do something first or I am just doing it wrong
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.