-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unexpected token in Safari #1
Comments
Upon further investigation, the issue I am experiencing in Safari is because instance field declarations are not yet supported in that browser.
This can be worked around by putting those declarations in the constructor with context; from: export class WCMonacoEditor extends HTMLElement {
__element = null;
__editor = null; To: export class WCMonacoEditor extends HTMLElement {
constructor () {
super();
this.__element = null;
this.__editor = null;
} And it runs! |
Thanks for taking the time to file this issue. Awesome quality bug report 👍 This should be fixed in the 1.0 release. I'm going to close this issue for now. If you're still have issues after updating the package, don't hesitate to reopen it. |
Thanks for sharing your work! I’m excited to try it out. It may not be working as expected. I’ll look into why, but here are the details.
SyntaxError: Unexpected token '='. Expected an opening '(' before a method's parameter list.
The text was updated successfully, but these errors were encountered: