Skip to content

Module Parse Runtime Error after upgrading from 3.7.1 to 3.9.2 #13379

@d3vtoolsmith

Description

@d3vtoolsmith

Ionic version:
[ ] 2.x
[x] 3.x
[ ] 4.x

I'm submitting a ...
[x] bug report
[ ] feature request

Current behavior:
After diligently following all the upgrade instructions for going from 3.7.1 to 3.9.2, I'm no longer able to run the app because of the following error:

Uncaught Error: Module parse failed: Unexpected token (144:4294) You may need an appropriate loader to handle this file type. | ListingsPage = __decorate([ | Component({ | selector: 'page-listings',template:/*ion-inline-start:"/Users/user1/Documents/DEV/app1/src/pages/listings/listings.html"*/`<ion-header...' }), | __metadata("design:paramtypes", [typeof (_b = typeof App !== "undefined" && App) === "function" && _b || Object, typeof (_c = typeof ModalController !== "undefined" && ModalController) === "function" && _c || Object, typeof (_d = typeof NavController !== "undefined" && NavController) === "function" && _d || Object, typeof (_e = typeof Events !== "undefined" && Events) === "function" && _e || Object, typeof (_f = typeof DataService !== "undefined" && DataService) === "function" && _f || Object, typeof (_g = typeof AuthService !== "undefined" && AuthService) === "function" && _g || Object]) at Object.341 (main.js:4935) at __webpack_require__ (bootstrap 2bf6fbfbcb9dcc85640a:54) at Object.336 (rental-details.module.ts:17) at __webpack_require__ (bootstrap 2bf6fbfbcb9dcc85640a:54) at Object.431 (main.js:6105) at __webpack_require__ (bootstrap 2bf6fbfbcb9dcc85640a:54) at Object.368 (main.ts:5) at __webpack_require__ (bootstrap 2bf6fbfbcb9dcc85640a:54) at Object.345 (keyboard-attach.module.ts:16) at __webpack_require__ (bootstrap 2bf6fbfbcb9dcc85640a:54) 

Expected behavior:
App should still work after the upgrade.

It feels like there's something obvious that my cold-afflicted brain is overlooking, but I cannot quite put my finger on it yet.

Steps to reproduce:
I've spun up a new Ionic tabs application with some additional pages and components, and I'm yet unable to reproduce this error.

Other information:

The following resolved issue from a year ago is the closest to the error I'm seeing, but its resolution doesn't really work/make sense (as the newly spun up Ionic app has no issues with components outside the 'app' folder): #5482

Ionic info:

cli packages: (/Users/user1/Documents/DEV/app1/node_modules) @ionic/cli-utils : 1.18.0 ionic (Ionic CLI) : 3.18.0 global packages: cordova (Cordova CLI) : 7.1.0 local packages: @ionic/app-scripts : 3.1.0 Cordova Platforms : ios 4.4.0 Ionic Framework : ionic-angular 3.9.2 System: ios-deploy : 1.9.1 ios-sim : 5.0.8 Node : v6.9.3 npm : 3.10.10 OS : macOS Sierra Xcode : Xcode 9.0.1 Build version 9A1004 Environment Variables: ANDROID_HOME : not set Misc: backend : legacy 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions