lephyrus / ngx-translate-messageformat-compiler

Advanced pluralization (and more) for ngx-translate, using standard ICU syntax which is compiled with the help of messageformat.js.
MIT License
93 stars 29 forks source link

Cannot find name 'MessageFormat' #4

Closed B4nan closed 6 years ago

B4nan commented 6 years ago

In angular cli app (v4.4.4, cli v1.4.4), there is an error in the end of project compilation

adamek@mbp:~/project$ ng build
Date: 2017-10-02T21:34:34.695Z
Hash: 4324f7307dc1676d0036
Time: 4595ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 319 bytes [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 323 bytes {inline} [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 182 kB {inline} [initial] [rendered]

ERROR in ~/project/node_modules/ngx-translate-messageformat-compiler/src/translate-message-format-compiler.ts (7,26): Cannot find name 'MessageFormat'.
ERROR in ~/project/node_modules/ngx-translate-messageformat-compiler/src/translate-message-format-compiler.ts (21,43): Cannot find name 'MessageFormat'.
lephyrus commented 6 years ago

@B4nan Can you please check if you can still reproduce this with v2.0.0? I could not. Thanks.

lephyrus commented 6 years ago

Please re-open if this is still an issue.