Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ERROR in ./node_modules/moment-timezone/data/packed/latest.json
- Module parse failed: Unexpected token e in JSON at position 0 while parsing near 'export default {
- Module build failed (from ./node_modules/babel-loader/lib/index.js):
- SyntaxError: /usr/src/app/ui/src/tz: Unexpected token, expected ";" (1:10)
- Here is a solution:
- */
- import 'moment-timezone/moment-timezone'
- moment.tz.load({
- "version": "2018g",
- "zones": ["Etc/UTC|UTC|0|0|"],
- "links": [
- "Etc/UCT|UCT",
- "Etc/UTC|Etc/Universal",
- "Etc/UTC|Etc/Zulu",
- "Etc/UTC|UTC",
- "Etc/UTC|Universal",
- "Etc/UTC|Zulu"
- ]
- })
Add Comment
Please, Sign In to add comment