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

Uncaught ReferenceError: syms is not defined #183

Open
yousefamar opened this issue Apr 11, 2019 · 0 comments
Open

Uncaught ReferenceError: syms is not defined #183

yousefamar opened this issue Apr 11, 2019 · 0 comments

Comments

@yousefamar
Copy link

yousefamar commented Apr 11, 2019

syms is set without being defined beforehand. When I load kbpg as an ES6 module, the browser doesn't like this because I believe it forces strict mode.

This is fixed with window.syms = null; before loading the module, but it's a hassle to do this since it needs to be done before the module is loaded (which is hacky since normal imports are hoisted and the order of imports loading is not guaranteed).

I figured it's not worth making a pull request to just add a var syms;.

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

1 participant