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] Cannot find module 'vite' #329

Open
dolanmiu opened this issue Dec 21, 2023 · 0 comments
Open

[BUG] Cannot find module 'vite' #329

dolanmiu opened this issue Dec 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dolanmiu
Copy link

When I add webframeworks in an Angular 17 deployment with SSR, FirebaseExtended/action-hosting-deploy requires vite to be installed. It works fine deploying locally, but fails on GitHub Actions.

Action config

Error message

/opt/hostedtoolcache/node/18.19.0/x[64](https://github.com/dolanmiu/Fluid-Paper/actions/runs/7282742720/job/19845642204#step:6:67)/bin/npx firebase-tools@latest deploy --only hosting:fluid-paper-front --project fluid-paper --json
  npm WARN exec The following package was not found and will be installed: [email protected]
  Could not load dependency vite in ./spa, have you run `npm install`?
  ***
    "status": "error",
    "error": "Cannot find module 'vite'\nRequire stack:\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/utils.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/index.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/emulator/controller.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/emulator/commandUtils.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/commands/database-get.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/commands/index.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/index.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/bin/firebase.js"
  ***
    "status": "error",
    "error": "Cannot find module 'vite'\nRequire stack:\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/utils.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/index.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/emulator/controller.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/emulator/commandUtils.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/commands/database-get.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/commands/index.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/index.js\n- /home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/bin/firebase.js"
  ***
  The process '/opt/hostedtoolcache/node/18.19.0/x64/bin/npx' failed with exit code 2
  Retrying deploy with the --debug flag for better error output
  /opt/hostedtoolcache/node/18.19.0/x64/bin/npx firebase-tools@latest deploy --only hosting:fluid-paper-front --project fluid-paper --debug

Expected behavior

Working with webframeworks enabled

Actual behavior

Needs vite

@dolanmiu dolanmiu added the bug Something isn't working label Dec 21, 2023
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

1 participant