Guest User

Untitled

a guest
Jan 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. /*
  2. ERROR in ./node_modules/moment-timezone/data/packed/latest.json
  3. Module parse failed: Unexpected token e in JSON at position 0 while parsing near 'export default {
  4.  
  5. Module build failed (from ./node_modules/babel-loader/lib/index.js):
  6. SyntaxError: /usr/src/app/ui/src/tz: Unexpected token, expected ";" (1:10)
  7.  
  8. Here is a solution:
  9. */
  10.  
  11. import 'moment-timezone/moment-timezone'
  12. moment.tz.load({
  13. "version": "2018g",
  14. "zones": ["Etc/UTC|UTC|0|0|"],
  15. "links": [
  16. "Etc/UCT|UCT",
  17. "Etc/UTC|Etc/Universal",
  18. "Etc/UTC|Etc/Zulu",
  19. "Etc/UTC|UTC",
  20. "Etc/UTC|Universal",
  21. "Etc/UTC|Zulu"
  22. ]
  23. })
Add Comment
Please, Sign In to add comment