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

@astrojs/vercel Tailwindcss astro add could not update your astro.config.js file safely. #12862

Closed
1 task done
brezzy1337 opened this issue Dec 30, 2024 · 2 comments
Closed
1 task done
Labels
needs repro Issue needs a reproduction

Comments

@brezzy1337
Copy link

Astro Info

Astro version            v2.10.15
Package manager          npm
Platform                 linux
Architecture             x64
Adapter                  @astrojs/vercel/edge
Integrations             None or couldn't determine.

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Trying to install tailwind with the command

npx astro add tailwind

This throws this error:


 error   Astro could not update your astro.config.js file safely.
  Reason: Unable to install dependencies
  
  You will need to add these integration(s) manually.
  Documentation: https://docs.astro.build/en/guides/integrations-guide/
  File:
    /workspaces/www-digital-space-development-.com/node_modules/astro/dist/cli/add/index.js:173:31
  Code:
    172 |     case 3 /* failure */: {
    > 173 |       throw createPrettyError(new Error(`Unable to install dependencies`));
          |                               ^
      174 |     }
      175 |   }
      176 |   const rawConfigPath = await resolveConfigPath({
  Stacktrace:
Error: Astro could not update your astro.config.js file safely.
Reason: Unable to install dependencies

You will need to add these integration(s) manually.
Documentation: https://docs.astro.build/en/guides/integrations-guide/
    at add (file:///workspaces/www-digital-space-development-.com/node_modules/astro/dist/cli/add/index.js:173:31)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runCommand (file:///workspaces/www-digital-space-development-.com/node_modules/astro/dist/cli/index.js:96:7)
    at async cli (file:///workspaces/www-digital-space-development-.com/node_modules/astro/dist/cli/index.js:148:5)

What's the expected result?

It should just install tailwind and set up the configuration automatically. I am using @astrojs/vercel which could be causing issues.

Very cool project, loved to see this all smoothed out :)

Link to Minimal Reproducible Example

https://github.com/brezzy1337/www-digital-space-development-.com

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Dec 30, 2024
@ematipico
Copy link
Member

We don't extend support to Astro v2, plus your repository isn't visible

@ematipico ematipico added the needs repro Issue needs a reproduction label Jan 2, 2025
Copy link
Contributor

github-actions bot commented Jan 2, 2025

Hello @brezzy1337. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs repro will be closed if they have no activity within 3 days.

@github-actions github-actions bot removed the needs triage Issue needs to be triaged label Jan 2, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue needs a reproduction
Projects
None yet
Development

No branches or pull requests

2 participants