Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: Changing outDir results in error #1590

Open
2 tasks done
sekoyo opened this issue Jul 28, 2024 · 1 comment
Open
2 tasks done

[Bug?]: Changing outDir results in error #1590

sekoyo opened this issue Jul 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sekoyo
Copy link

sekoyo commented Jul 28, 2024

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

Running build command results in:

$ vinxi build
vinxi v0.4.1


βš™  Building your app...


πŸ“¦ Compiling ssr router...
vinxi building router ssr in http mode
vite v5.3.5 building SSR bundle for production...
βœ“ 49 modules transformed.
something/.vite/manifest.json                 1.72 kB
something/assets/index-7whypOeP.css           0.31 kB
something/assets/ssr-CSUIEcYF.css             0.38 kB
something/assets/HttpStatusCode-DH8IeaZe.js   0.28 kB
something/about.js                            0.29 kB
something/_...404_.js                         0.52 kB
something/index.js                            0.62 kB
something/assets/index-BhCdQPVl.js            2.74 kB
something/ssr.js                             25.10 kB
βœ“ built in 387ms
βœ” build done                                                                                                                                                                       19:50:14


πŸ“¦ Compiling client router...
vinxi building router client in client mode
vite v5.3.5 building for production...
virtual:$vinxi/handler/client (1:100): "default" is not exported by "src/entry-client.tsx", imported by "virtual:$vinxi/handler/client".
βœ“ 56 modules transformed.
something/server-functions-manifest.json      0.03 kB β”‚ gzip: 0.04 kB
something/.vite/manifest.json                 1.64 kB β”‚ gzip: 0.40 kB
something/assets/index-7whypOeP.css           0.31 kB β”‚ gzip: 0.22 kB
something/assets/client-CSUIEcYF.css          0.38 kB β”‚ gzip: 0.27 kB
something/assets/HttpStatusCode-DjTx85av.js   0.03 kB β”‚ gzip: 0.05 kB
something/assets/about-BU9Zyyq9.js            0.27 kB β”‚ gzip: 0.22 kB
something/assets/_...404_-DRpAHfHL.js         0.52 kB β”‚ gzip: 0.36 kB
something/assets/index-rwcoGSeM.js            0.74 kB β”‚ gzip: 0.45 kB
something/assets/client-C-SCNUbM.js          21.83 kB β”‚ gzip: 8.76 kB
something/assets/index-Dlvg7cCr.js           24.10 kB β”‚ gzip: 9.34 kB
βœ“ built in 367ms
βœ” build done                                                                                                                                                                       19:50:15


πŸ“¦ Compiling server-fns router...
vinxi building router server-fns in http mode

 ERROR  ENOENT: no such file or directory, open '<redacted>/test-solid/.vinxi/build/client/_build/server-functions-manifest.json'                                     19:50:15

  at readFileSync (node:fs:453:20)
  at config (node_modules/@vinxi/server-functions/server.js:49:5)
  at runConfigHook (node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:66394:25)
  at async resolveConfig (node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:65845:12)
  at async Module.build (node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:64914:18)
  at async createViteBuild (node_modules/vinxi/lib/build.js:321:17)
  at async createRouterBuild (node_modules/vinxi/lib/build.js:438:2)
  at async node_modules/vinxi/lib/build.js:59:5
  at async createBuild (node_modules/vinxi/lib/build.js:58:4)
  at async Object.run (node_modules/vinxi/bin/cli.mjs:227:5)
  at async runCommand (node_modules/citty/dist/index.mjs:316:16)
  at async runCommand (node_modules/citty/dist/index.mjs:307:11)
  at async runMain (node_modules/citty/dist/index.mjs:445:7)



 ERROR  ENOENT: no such file or directory, open '<redacted>/test-solid/.vinxi/build/client/_build/server-functions-manifest.json'                                     19:50:15

error: script "build" exited with code 1

Expected behavior πŸ€”

Should be able to change the outDir of built artifacts

Steps to reproduce πŸ•Ή

Steps:

  1. bun create solid test-solid
  2. Choose bare/basic
  3. Choose no server side stuff
  4. Try to change out dir:
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
  vite: {
    build: {
      outDir: "./something",
    },
  },
});

Context πŸ”¦

No response

Your environment 🌎

"dependencies": {
    "@solidjs/meta": "^0.29.4",
    "@solidjs/router": "^0.14.1",
    "@solidjs/start": "^1.0.6",
    "solid-js": "^1.8.19",
    "vinxi": "^0.4.1"
  },
@sekoyo sekoyo added the bug Something isn't working label Jul 28, 2024
@AlexErrant
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants