denoland / deploy_feedback

For reporting issues with Deno Deploy
https://deno.com/deploy
74 stars 5 forks source link

[Bug]: vite-vue default project cannot be deployed #742

Open pihentagy opened 2 weeks ago

pihentagy commented 2 weeks ago

Problem description

Cannot deploy the default deno + vue project to deno deploy

Steps to reproduce

  1. Create a vite app
    deno run --allow-read --allow-write --allow-env npm:create-vite-extra@latest
  2. Create a github repo from it. You can see it here
  3. Deploy to deno.dev using the vite template
  4. Getting this error during deploy
    1s
    Run npm install
    npm error code ENOENT
    npm error syscall open
    npm error path /home/runner/work/vue3-test/vue3-test/package.json
    npm error errno -2
    npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/runner/work/vue3-test/vue3-test/package.json'
    npm error enoent This is related to npm not being able to find a file.
    npm error enoent
    npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-11-02T12_33_31_008Z-debug-0.log
    Error: Process completed with exit code 254.

Expected behavior

Deploy succeeds

Environment

No response

Possible solution

No response

Additional context

https://github.com/pihentagy/vue3-test

pihentagy commented 2 weeks ago

The problem seems to be the "vite" project template.

The correct settings for this project is to remove the install step and change build step to:

deno task build