-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Updating to [email protected] throws errors #11149
Comments
From next.134 can't access to Currently, i downgrade to next.133 and wait Astro fix it |
Svelte checks whether the import path starts with 'svelte/internal', so it is possible to import from the file path to bypass error checking; or directly 'fake' the 'add_snippet_symbol' function, which merely adds a 'snippet' identifier to the function, but neither approach seems to be a long-term solution. |
Downgrading package.json: {
"name": "blog",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro check --watch & astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/mdx": "^3.0.1",
"@astrojs/rss": "^4.0.6",
"@astrojs/sitemap": "^3.1.5",
"@astrojs/svelte": "^4.0.4",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^7.6.0",
"astro": "^4.9.2",
"prettier-plugin-astro": "^0.14.0",
"prettier-plugin-svelte": "^3.2.3",
"prettier-plugin-tailwindcss": "^0.6.1",
"svelte": "^5.0.0-next.148",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"prettier": "^3.2.5"
}
} astro.config.mjs: import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import svelte from "@astrojs/svelte";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/static';
export default defineConfig({
site: 'https://matthewdavis.io',
integrations: [mdx(), sitemap(), svelte(), tailwind()],
output: "static",
adapter: vercel()
}); |
This comment has been minimized.
This comment has been minimized.
I created PR to fix this issue: |
This workaround doesn't work btw, it totally breaks the page. |
As a temporary workaround an older version works with Astro... |
for my hobby projects, I wrote a post install script to add one line to installed a svelte file. (which is content of sveltejs/svelte#12008) it's bit a silly and temporal fix, but I'll share code if anyone is interested. |
Yes that'd be great, I'm doing it manually atm |
NOTE: I am using pnpm as my package manager. If you are using a different package manager like npm or yarn, please change the path to the file.
then run |
Idk if it'll help anybody or not, but it doesn't work if you use
So, try using |
Using a brand new Astro project and installing
|
TLDR I'm currently using Steps to reproduce :-
"dependencies": {
"@astrojs/svelte": "^5.7.0",
"astro": "^4.14.2",
"svelte": "^4.2.18",
"@astrojs/check": "^0.9.2",
"typescript": "^5.5.4"
}
|
I used |
Me too |
I found that some component using svelte4 causes that error |
how can some components use svelte 4? do you mean svelte 4 syntax (eg |
I'm having trouble even finding a component that |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Updating to [email protected] throws the following error,
What's the expected result?
No errors
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-w4fbdg?file=package.json
Participation
The text was updated successfully, but these errors were encountered: