Skip to content

RC 5: toISOString is not a function #9996

Closed
@rhday74

Description

@rhday74

Ionic version: (check one with "x")
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report

Current behavior:
using ionic:serve with RC 5 I get the following error at runtime:

TypeError: toISOString is not a function
    at String.toJSON (<anonymous>)
    at Object.<anonymous> (http://localhost:8100/build/polyfills.js:1:3520)
    at t (<anonymous>:1:31412)
    at t (<anonymous>:1:32025)
    at t (<anonymous>:1:32025)
    at t (<anonymous>:1:32025)
    at t (<anonymous>:1:32025)
    at t (<anonymous>:1:32025)
    at t (<anonymous>:1:32025)
    at t (<anonymous>:1:32025)

Related code:

current package.json is as follows:

"dependencies": {
    "@angular/common": "2.2.1",
    "@angular/compiler": "2.2.1",
    "@angular/compiler-cli": "2.2.1",
    "@angular/core": "2.2.1",
    "@angular/forms": "2.2.1",
    "@angular/http": "2.2.1",
    "@angular/platform-browser": "2.2.1",
    "@angular/platform-browser-dynamic": "2.2.1",
    "@angular/platform-server": "2.2.1",
    "@ionic/storage": "1.1.7",
    "immutable": "3.8.1",
    "ionic-angular": "2.0.0-rc.5",
    "ionic-native": "2.2.11",
    "ionicons": "3.0.0",
    "lodash": "4.17.4",
    "moment": "2.17.1",
    "ng2-redux": "5.1.0",
    "ng2-translate": "5.0.0",
    "redux": "3.6.0",
    "redux-localstorage": "0.4.1",
    "redux-logger": "2.7.4",
    "redux-observable": "0.12.2",
    "rxjs": "5.0.0-beta.12",
    "sw-toolbox": "3.4.0",
    "zone.js": "0.6.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "1.0.0",
    "codelyzer": "2.0.0-beta.4",
    "stylelint": "7.7.1",
    "stylelint-declaration-use-variable": "1.6.0",
    "tslint": "4.3.1",
    "tslint-eslint-rules": "3.2.3",
    "typescript": "2.0.9"
  },

Other information:
got the latest Ionic CLI installed globally. Pretty sure I nailed the dependency versions. Only other thing I have that isn't stock is I've moved the location of the main.ts file and modified sourcemaps:

"config": {
    "ionic_source_map_type": "eval-source-map",
    "ionic_app_entry_point": "src/main.ts"
  },

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Cordova CLI: 6.4.0 
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
ios-deploy version: 1.9.0 
ios-sim version: 5.0.13 
OS: macOS Sierra
Node Version: v6.9.4
Xcode version: Xcode 8.2.1 Build version 8C1002

Error Stacktrace:

ErrorHandler.handleError @ VM1204:53
IonicErrorHandler.handleError @ VM1658:58
next @ VM1203:298
schedulerFn @ VM1229:89
SafeSubscriber.__tryOrUnsub @ VM1234:223
SafeSubscriber.next @ VM1234:172
Subscriber._next @ VM1234:125
Subscriber.next @ VM1234:89
Subject.next @ VM1230:55
EventEmitter.emit @ VM1229:81
NgZone.triggerError @ VM1228:280
onHandleError @ VM1228:259
t.handleError @ polyfills.js:3
e.runTask @ polyfills.js:3
invoke @ polyfills.js:3

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: replythe issue needs a response from the user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions