-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
dev command is causing an error after recent update of the "esm-env" package to the version 1.1.1
The reason is that in node_modules\svelte\src\internal\server\context.js
import { DEV } from 'esm-env';
DEV = false after 'esm-env' update
and it is causing an error on line 64
if (DEV) {
// component function
current_component.function = fn;
}Reproduction
need reproduction
Logs
TypeError: Cannot read properties of undefined (reading 'Symbol(filename)')
at Module.push_element (\node_modules\.pnpm\s[email protected]\node_modules\svelte\src\internal\server\dev.js:70:70)System Info
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.7.3",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@tailwindcss/typography": "^0.5.15",
"@types/eslint": "^9.6.1",
"@types/wicg-file-system-access": "^2023.10.5",
"autoprefixer": "^10.4.20",
"bits-ui": "1.0.0-next.32",
"clsx": "^2.1.1",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.46.0",
"formsnap": "2.0.0-next.0",
"globals": "^15.11.0",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"prettier-plugin-tailwindcss": "^0.6.8",
"svelte": "^5.1.4",
"svelte-check": "^4.0.5",
"svelte-radix": "^2.0.1",
"sveltekit-superforms": "^2.20.0",
"tailwind-merge": "^2.5.4",
"tailwind-variants": "^0.2.1",
"tailwindcss": "^3.4.14",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.6.3",
"typescript-eslint": "^8.12.2",
"vite": "^5.4.10",
"zod": "^3.23.8"
},
"dependencies": {
"lucide-svelte": "^0.454.0",
"mode-watcher": "^0.4.1"
},Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels