nyaggah / bedframe

Your Browser Extension Development Framework
https://bedframe.dev
MIT License
499 stars 5 forks source link

value is sent to function `formatTargetDir` as an object but it expects a string #453

Open reedjones opened 1 month ago

reedjones commented 1 month ago

https://github.com/nyaggah/bedframe/blob/57e79417ebbaf0c3292a362d6d237588f4a83fad/packages/cli/src/commands/make.ts#L62

This causes an error when using "." as the name, the value is later sent to function formatTargetDir as an object but function formatTargetDir expected a string ...

node:path:756
    validateString(path, 'path');

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must b
    at Object.basename (node:path:756:5)
    at formatTargetDir (file:///C:/Users/reedj/AppData/Local8.2.2_sass@1.69.7_vite-plugin-dts@3.9.1_vite-plugin-externa_ist/bedframe.js:290:20)
    at bedframePrompts (file:///C:/Users/reedj/AppData/Local8.2.2_sass@1.69.7_vite-plugin-dts@3.9.1_vite-plugin-externa_ist/bedframe.js:601:34)
    at process.processTicksAndRejections (node:internal/proc
  code: 'ERR_INVALID_ARG_TYPE'
}