Closed YhordiC closed 10 months ago
Just a complete guess, but could you try in a folder that doesn't have a space?
Maybe just a copy paste error, but I see an extra O
added to tailwindO
, but you're importing import tailwind from "@astrojs/tailwind";
// yours
integrations: [tailwindO), svelte()],
// should be
integrations: [tailwind(), svelte()],
I've already solved the problem, to fix the error I had to import Svelte to Astro manually. The information and procedure can be found in the documentation on the official website of AstroJs [Link of the website] Another problem I had was with the version of Astro that gave me compatibility problems, so I installed Svelte with a specific version compatible with the version of Astro I had installed.
To change the version of Astro modify it in the packege.json, and then use the npm install command; To install a specific version of Svelte use the following npm install @astrojs/svelte@"Version" command. Thank you for taking the time to comment and try to help.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
en ninguno
Describe the Bug
I can't install svelte dependencies and packages on astro
What's the expected result?
bunx astro add svelte Installing dependencies... Astro will generate a minimal ./svelte.config.js file. Continue? ... yes Astro will make the following changes to your config file: astro. config.mjs import { defineConfig } from 'astro/config'; import tailwind from "@astrojs/tailwind"; import svelte from "@astrojs/svelte"; // https://astro.build/config export default defineConfig({ integrations: [tailwindO), svelte()], output: 'server' )); ? Continue? > (Y/n)
Link to Minimal Reproducible Example
https://github.com/YhordiC/spotify-clone
Participation