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

Error in Internet Explorer #270

Open
sudoduan opened this issue Feb 23, 2022 · 2 comments
Open

Error in Internet Explorer #270

sudoduan opened this issue Feb 23, 2022 · 2 comments

Comments

@sudoduan
Copy link

Has anyone successfully run Kekule.js in Internet Explorer? We got "Kekule undefined" error in our project. The same project works fine in Chrome and Firefox.

@partridgejiang
Copy link
Owner

Hi @sudoduan, since Internet Explorer is a so ancient and has been abandoned by MS for a long time, we do not run tests on IE anymore currently. Anyway, some usages of new JavaScript syntax can not be recognized by IE has now been fixed. Please check and clone the newly committed code.

Please note that the webComponent module is totally unsupported in any versions of IE. So when using the library, please do not include it when loading script by kekule.js. For example, the following HTML code will surely cause loading errors in IE:

<script src="pathToKekule/kekule.js?modules=chemWidget,webComponent></script>

As for the all-in-one kekule.min.js, it contains all available modules (including webComponent) and can not be parsed or loaded in IE directly. To workaround this problem, you may need to compress a custom one by yourself. Please check the compress tool in utils/jsMinifier directory and run the js minifier with the following command line to generate kekule.min.js without webComponennt module:

node run.js -e webComponent -d destinationDirectory

Such a custom min file is attached here and you may use it directly.

kekule.min.zip

@sudoduan
Copy link
Author

@partridgejiang Thank you! I will try it out.

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

2 participants