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

Compiled .js fails with "ReferenceError: messageFormat is not defined" #45

Open
dharrie-hbo opened this issue Feb 13, 2021 · 1 comment

Comments

@dharrie-hbo
Copy link

Version 1.1.1 of globalize-compiler generates code that produces the following error:

compiled-formatters.js:53 Uncaught ReferenceError: messageFormat is not defined
    at compiled-formatters.js:53
    at compiled-formatters.js:15
    at compiled-formatters.js:17

This does not occur with version 1.0.0.

The easiest way to reproduce this is to set up and run globalize's example code: https://github.com/globalizejs/globalize/tree/master/examples/globalize-compiler

Follow the instructions for production.html, start the server, and load in the browser (I'm using Chrome). Check the console in the browser's dev tools, and you'll see the error.

@MickeyPhoenix
Copy link

Proposed fix in PR #46, paired by @dharrie-hbo and myself.

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