Skip to content

Bug: Luban does not appear to build any more with current tools and libraries #2612

Description

@JonHodgson

Trying to build Luban

Using a Mac at this point (eventually want to build on Raspberry Pi, but as I know there are working Mac versions I thought it best to check I can get a successful build there first)

Running npm install gives the folowing result

> snapmaker-luban@4.15.2 postinstall
> npm run pkgsync && npm run electron-rebuild


> snapmaker-luban@4.15.2 pkgsync
> node build/pkgsync.js


> snapmaker-luban@4.15.2 electron-rebuild
> electron-rebuild

file:///Users/jon/Development/Luban/node_modules/yargs/yargs:3
const {applyExtends, cjsPlatformShim, Parser, Yargs, processArgv} = require('./build/index.cjs')
                                                                    ^

ReferenceError: require is not defined in ES module scope, you can use import instead
    at file:///Users/jon/Development/Luban/node_modules/yargs/yargs:3:69
    at ModuleJobSync.runSync (node:internal/modules/esm/module_job:673:37)
    at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:350:47)
    at loadESMFromCJS (node:internal/modules/cjs/loader:1752:24)
    at Module._compile (node:internal/modules/cjs/loader:1916:5)
    at Object..js (node:internal/modules/cjs/loader:2074:10)
    at Module.load (node:internal/modules/cjs/loader:1656:32)
    at Module._load (node:internal/modules/cjs/loader:1448:12)
    at wrapModuleLoad (node:internal/modules/cjs/loader:261:19)
    at Module.require (node:internal/modules/cjs/loader:1679:12)

Node.js v26.5.0
npm error code 1
npm error path /Users/jon/Development/Luban
npm error command failed
npm error command sh -c npm run pkgsync && npm run electron-rebuild
npm error A complete log of this run can be found in: /Users/jon/.npm/_logs/2026-07-10T17_54_06_228Z-debug-0.log

Although I'm an experienced programmer I have almost no experience of Node, so I don't really know where to go from here

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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