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

IE11 Support #10

Closed
cary-hu opened this issue Oct 21, 2021 · 2 comments
Closed

IE11 Support #10

cary-hu opened this issue Oct 21, 2021 · 2 comments
Labels
question Further information is requested

Comments

@cary-hu
Copy link

cary-hu commented Oct 21, 2021

When I try to use tsx-dom in ie11, there was SCRIPT1053: Const must be initialized, any solution for that?

@Lusito
Copy link
Owner

Lusito commented Oct 24, 2021

tsx-dom targets es2015, so for browsers, which don't support this you need to transpile the code to lower EcmaScript standards (probably ES5 in this case).
If you are using webpack or anything else that uses babel, you can make it transpile the module like this:
babel/babel-loader#171 (comment)

If you are using some other transpiler, try googling how to include specified node_modules entries in the process.

@Lusito Lusito added the question Further information is requested label Oct 24, 2021
@cary-hu
Copy link
Author

cary-hu commented Oct 25, 2021

Thanks so much, I have forked your project, and ReTranspile the code to ES5, and now, it works.

@cary-hu cary-hu closed this as completed Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants