-
Notifications
You must be signed in to change notification settings - Fork 652
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
[[email protected]] unexpected js error with deno 2.0.1+, incorrect chunks order #2714
Comments
This error occurs when multiple copies of Preact are used at the same time. Not sure yet what lead to multiple copies ending up in the esbuild bundles. Can you share the |
{
"lock": false,
"nodeModulesDir": "auto",
"tasks": {
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
"start": "deno run -A --unstable-kv --unstable-cron --watch=static/,routes/ dev.ts",
"build": "deno run -A --unstable-kv --unstable-cron dev.ts build",
"preview": "deno run -A --unstable-kv --unstable-cron --watch=static/,routes/ main.ts",
"update": "deno run -A -r jsr:@fresh/[email protected] ."
},
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
"imports": {
"fresh": "jsr:@fresh/core@^2.0.0-alpha.22",
"tailwindcss": "npm:[email protected]",
"@fresh/plugin-tailwind": "jsr:@fresh/[email protected]",
"$fresh_charts/": "https://deno.land/x/[email protected]/",
"$jose/": "https://deno.land/x/jose/",
"preact": "npm:preact@^10.24.2",
"@preact/signals": "npm:@preact/signals@^1.3.0",
"$icons": "jsr:@preact-icons/tb",
"@std/log": "jsr:@std/log",
"@std/crypto": "jsr:@std/crypto",
"@std/encoding": "jsr:@std/encoding",
"@std/fs": "jsr:@std/fs",
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"exclude": ["**/_fresh/*", "inspection", "data", "proto"]
} |
same after updating both preact and @preact/signals
the jsr:@preact-icons/tb is using jsr:@preact-icons/common which has deps npm:preact@^10.22.1 |
I'm having this issue as well. I think this only occur using Partial, when navigating a page from old build to new build. Steps to reproduce:
This happen every time when I deploy new update. My users are complaining that the website hang and couldn't click anything. I currently suppress this error with |
it seems coming from the diff of chunks, see denoland/deno#26616 (comment) |
TypeError: Cannot read properties of undefined (reading '__H')
if built with deno 2.0.0, everything is ok
The text was updated successfully, but these errors were encountered: