globalizejs / globalizejs/globalize-compiler

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

Open
#45 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.