justmoon / dassie

Home Page:https://dassie.land

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`pnpm build` script fails

sublimator opened this issue · comments

packages/lib-itergen-utils build$ rollup -c
│ [!] TypeError: hashbang is not a function
│     at createLibraryConfig (file:///Users/nicholasdudfield/projects/dassie/common/config/rollup.js:16:17)
│     at file:///Users/nicholasdudfield/projects/dassie/packages/lib-itergen-utils/rollup.config.js:3:16
│     at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
│     at async Promise.all (index 0)
│     at ESMLoader.import (node:internal/modules/esm/loader:530:24)
│     at importModuleDynamicallyWrapper (node:internal/vm/module:438:15)
│     at getConfigFileExport (/Users/nicholasdudfield/projects/dassie/node_modules/.pnpm/rollup@3.9.1/node_modules/rollup/dist/shared/loadConfigFile.js:432:17)
│     at Object.loadConfigFile (/Users/nicholasdudfield/projects/dassie/node_modules/.pnpm/rollup@3.9.1/node_modules/rollup/dist/shared/loadConfigFile.js:391:59)
│     at getConfigs (/Users/nicholasdudfield/projects/dassie/node_modules/.pnpm/rollup@3.9.1/node_modules/rollup/dist/bin/rollup:1680:39)
│     at runRollup (/Users/nicholasdudfield/projects/dassie/node_modules/.pnpm/rollup@3.9.1/node_modules/rollup/dist/bin/rollup:1657:43)

Seems to be some kind of issue with the default imports not working

In common/config/rollup.js:

import hashbang from "rollup-plugin-hashbang"

At runtime hashbang is an object with a "default" property