-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
deno bundle
misbehaving output
#13048
Comments
There was a significant update landed yesterday in main. Can you please try again with Deno canary? |
I tried with both canary and 1.17.0. Neither version fixed the issue. |
Deno var own = Object.getOwnPropertyDescriptor(target, property);
if (own && (own.get || own.set)) {
delete desc1.writable;
delete desc1.initializer; |
The issue is back since it was briefly fixed with I've updated my issue reproduction page to simplify everything as well as include a working vanilla Lit implementation. For simplicity sake, I haven't implemented a page which shows Deno's behavior for each version (that seems like overkill), but I could make that happen if it would be helpful. https://tdillon.gitlab.io/lit-deno-example/ Hope this helps. |
@ry Just a feedback | New version release of deno without existing bug fixing will be useless for adoption of deno. |
@bartlomieju @kitsonk @piscisaureus @caspervonb @lucacasonato |
I believe this is the same issue as #14329. Using Also @codecycleteam, I know this probably wasn't intentional, but it is typically considered rude to tag a bunch of maintainers on an issue. Hopefully this issue will be fixed soon, but in the mean time you can try the workaround above ^ |
Lit's documentation aligns with #13281. https://lit.dev/docs/components/properties/#avoiding-issues-with-class-fields
I assume we just have to wait until the spec is finalized for the proper behavior without any sort of workaround. |
I'm using Deno's bundle command to create a simple Lit web app. What I'm finding is the output of
deno bundle
for newer versions of Deno (anything after1.4.6
) actually changes the behavior of Lit. No errors are shown in the browser console, but the functionality appears to be broken. I assume Deno's newer bundling is different somehow and generates different output for the same input.Here are 3 examples to show the behavior mentioned above. Browse to any of these pages, click the text, and the bolded text should update if everything is working.
deno bundle
deno bundle
All of the source code and build commands can be found at
https://gitlab.com/tdillon/lit-deno-example/.
The text was updated successfully, but these errors were encountered: