Skip to content
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

Starter app breaks on Chrome #51

Closed
luwes opened this issue Jan 13, 2019 · 3 comments
Closed

Starter app breaks on Chrome #51

luwes opened this issue Jan 13, 2019 · 3 comments

Comments

@luwes
Copy link

luwes commented Jan 13, 2019

The starter app is not working on my end on Chrome 71 / Mac.

screen shot 2019-01-13 at 12 09 58 pm

@matthewp
Copy link
Owner

Something changed with Codesandbox and it appears they always transpile to ES5 now :( . I'll look into it.

@jpray
Copy link
Collaborator

jpray commented Feb 15, 2019

I forked it and got it working with a couple changes. https://codesandbox.io/s/l4yj5kno5z
The first was to add custom-elements-es5-adapter. The second was to do

import { component, useState, html } from "haunted";

instead of

import { component, useState, html } from "haunted";
import { html } from "lit-html";

the need for which appears to be related to #49

@matthewp
Copy link
Owner

I updated it on my end, thanks for the pointers @jpray !

The ES5 stuff is a bit annoying, not sure why all of these editors require ES5...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants