nksaraf / vinxi

The Full Stack JavaScript SDK
https://vinxi.vercel.app
MIT License
2.22k stars 80 forks source link

vinxi build --config <path> broken in 0.4.3 #388

Open paularmstrong opened 1 month ago

paularmstrong commented 1 month ago

This worked fine in 0.4.1:

vinxi build --config ./config/app.config.ts

After upgrading to 0.4.3:

vinxi build --config ./config/app.config.ts

vinxi v0.4.3

⚙  Building your app...
vinxi v0.4.3

 ERROR  Couldn't load app                                                                 8:37:10 AM

  at Object.run (web/node_modules/vinxi/bin/cli.mjs:231:12)
  at async runCommand (web/node_modules/citty/dist/index.mjs:316:16)
  at async runCommand (web/node_modules/citty/dist/index.mjs:307:11)
  at async runMain (web/node_modules/citty/dist/index.mjs:445:7)

 ERROR  Couldn't load app                                                                 8:37:10 AM

 ERROR  Exited with code: 1                                                               8:37:10 AM

  at CommandChild.pipedStdoutBuffer (web/node_modules/dax-sh/esm/mod.js:9392:19)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Vinxi will only build if the config is in the same directory as the CWD.

nksaraf commented 1 month ago

Okay sounds like a bug .. I'll try to take a look in this week

remi-espie commented 1 week ago

Hello, I'm facing the same issue and no updates here. Does a workaround have been found ? Thanks