Skip to content

Add bundle-script API#393

Draft
chr15m wants to merge 1 commit intobabashka:mainfrom
chr15m:issue-392-bundler-api
Draft

Add bundle-script API#393
chr15m wants to merge 1 commit intobabashka:mainfrom
chr15m:issue-392-bundler-api

Conversation

@chr15m
Copy link
Contributor

@chr15m chr15m commented Jun 21, 2025

WIP: when I add bundleScript to the api and run nbb it throws the following error, which is where I'm currently stuck:

$ npx nbb testing.cljs 
node:fs:446
      path = pathModule.toNamespacedPath(getValidatedPath(path));
                                         ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received null
    at Module.readFileSync (node:fs:446:42)
    at $APP.NAa (file:///home/chrism/dev/nbb/lib/nbb_bundler.js:14:109)
    at file:///home/chrism/dev/nbb/lib/nbb_bundler.js:18:233
    at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.17.0

Please answer the following questions and leave the below in as part of your PR.

@chr15m chr15m changed the title Separate out bundle-script fn from init. Add bundle-script API Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments