Closed
Description
Short description of the problem:
I'm importing moment-timezone but it's giving below rollup.js error
SyntaxError: Unexpected token (2:10) in /Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/moment-timezone/data/packed/latest.json
at Parser.pp$4.raise (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:4072:13)
at Parser.pp.unexpected (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:2270:8)
at Parser.pp.semicolon (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:2247:59)
at Parser.pp$1.parseExpressionStatement (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:2662:8)
at Parser.pp$1.parseStatement (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:2427:20)
at Parser.pp$1.parseBlock (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:2677:23)
at Parser.pp$1.parseStatement (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:2401:31)
at Parser.pp$1.parseTopLevel (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:2315:23)
at Parser.parse (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:2182:15)
at parse (/Users/annaggarwal/Documents/IdeaProjects/RimsMobile/node_modules/rollup/dist/rollup.js:4972:37)
What behavior are you expecting?
No errors
Steps to reproduce:
import moment from "moment";
import "moment-timezone";
moment.tz.setDefault("America/Los_Angeles");
Which Ionic Version? 1.x or 2.x
Ionic 2 rc0
Run ionic info
from terminal/cmd prompt: (paste output below)
Your system information:
Cordova CLI: 6.3.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a
Metadata
Metadata
Assignees
Labels
No labels