Ionic Serve Deleting files every time I run it


#1

Today, each time I run ionic serve, I get this error message. Anyone know if this is specific to my computer, or is it happening to others as well?

Runtime Error
Uncaught (in promise): TypeError: Cannot read property 'call' of undefined TypeError: Cannot read property 'call' of undefined at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30) at http://localhost:8100/build/main.js:74:10 at t.invoke (http://localhost:8100/build/polyfills.js:3:14356) at Object.onInvoke (http://localhost:8100/build/vendor.js:4247:33) at t.invoke (http://localhost:8100/build/polyfills.js:3:14296) at r.run (http://localhost:8100/build/polyfills.js:3:9523) at http://localhost:8100/build/polyfills.js:3:19622 at t.invokeTask (http://localhost:8100/build/polyfills.js:3:15040) at Object.onInvokeTask (http://localhost:8100/build/vendor.js:4238:33) at t.invokeTask (http://localhost:8100/build/polyfills.js:3:14961)
Stack
Error: Uncaught (in promise): TypeError: Cannot read property 'call' of undefined
TypeError: Cannot read property 'call' of undefined
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at http://localhost:8100/build/main.js:74:10
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14356)
    at Object.onInvoke (http://localhost:8100/build/vendor.js:4247:33)
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14296)
    at r.run (http://localhost:8100/build/polyfills.js:3:9523)
    at http://localhost:8100/build/polyfills.js:3:19622
    at t.invokeTask (http://localhost:8100/build/polyfills.js:3:15040)
    at Object.onInvokeTask (http://localhost:8100/build/vendor.js:4238:33)
    at t.invokeTask (http://localhost:8100/build/polyfills.js:3:14961)
    at c (http://localhost:8100/build/polyfills.js:3:19132)
    at Object.reject (http://localhost:8100/build/polyfills.js:3:18554)
    at NavControllerBase._fireError (http://localhost:8100/build/vendor.js:44486:16)
    at NavControllerBase._failed (http://localhost:8100/build/vendor.js:44474:14)
    at http://localhost:8100/build/vendor.js:44529:59
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14356)
    at Object.onInvoke (http://localhost:8100/build/vendor.js:4247:33)
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14296)
    at r.run (http://localhost:8100/build/polyfills.js:3:9523)
    at http://localhost:8100/build/polyfills.js:3:19622

It is not specific to one app, it’s happening to all of them.
When running serve, it appears as though all the files in www/build are deleted upon running it.
Thank you


#2

It is now happening, as far as I can tell, in just one app. I found this oddity where some numbers that seem related to webpack module are strangely out of order. 322 pops up after 318, followed by 319. I guess a logical next step would be to get those in the correct order but I’m hesitant to manually edit those files. Any thoughts?

	"../pages/films/films.module": [
		316,
		9
	],
	"../pages/map/map.module": [
		317,
		8
	],
	"../pages/people-details/people-details.module": [
		318,
		7
	],
	"../pages/people/people.module": [
		322,
		6
	],
	"../pages/planet-details/planet-details.module": [
		319,
		5
	],
	"../pages/planets/planets.module": [
		320,
		4
	],
	"../pages/register/register.module": [
		321,
		3
	],

The only significant recent change to this app was adding Ionic-native Email Composer. Unsure if that is relevant