Ionic serve keeps giving the same error, even if the error is gone, on different builds


#1

Hi everyone,

I’m a complete Ionic n00b, but I have a bit of a problem. I have a project I’m working on, and at one point during some CSS things I accidentialy removed a closing tag. So when I ran ‘ionic serve’ it gave me an error, telling me that the tag was missing.

Then I add the tag again, rerun ionic serve, and guess what…I get the same error. no matter what I did, I just keep getting the same error (tag missing). Crazy part comes next. I put back an older version of the app (one that worked), I still get the same order. I start a new Ionic project, nice and clean etc. I get the same error.

It’s like ionic is stuck in some weird state and no matter what I do, it just shows me the same error over and over.

I did the following things (with no result)

  • uninstall ionic and cordova
  • uninstall npm
  • clean npm cache
  • re-installed npm
  • re-installled cordova

error message

Runtime Error
Template parse errors: Unexpected closing tag “ion-list”. It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (" [ERROR ->] “): ng:///AppModule/SpotDetailBuddiesPage.html@73:2 Unexpected closing tag “ion-content”. It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (” [ERROR ->]"): ng:///AppModule/SpotDetailBuddiesPage.html@74:0
Stack
Error: Template parse errors:
Unexpected closing tag “ion-list”. It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags ("

[ERROR ->]
"): ng:///AppModule/SpotDetailBuddiesPage.html@73:2
Unexpected closing tag “ion-content”. It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags ("

[ERROR ->]"): ng:///AppModule/SpotDetailBuddiesPage.html@74:0 at syntaxError (http://localhost:8100/build/vendor.js:96066:34) at DirectiveNormalizer.normalizeLoadedTemplate (http://localhost:8100/build/vendor.js:107883:19) at DirectiveNormalizer.normalizeTemplateSync (http://localhost:8100/build/vendor.js:107859:21) at DirectiveNormalizer.normalizeTemplate (http://localhost:8100/build/vendor.js:107833:43) at CompileMetadataResolver._loadDirectiveMetadata (http://localhost:8100/build/vendor.js:108771:75) at http://localhost:8100/build/vendor.js:108967:54 at Array.forEach () at CompileMetadataResolver.loadNgModuleDirectiveAndPipeMetadata (http://localhost:8100/build/vendor.js:108966:41) at http://localhost:8100/build/vendor.js:120162:58 at Array.forEach ()

and this is my info:
Ionic Framework: 3.6.0
Ionic App Scripts: 2.1.3
Angular Core: 4.1.3
Angular Compiler CLI: 4.1.3
Node: 6.11.2
OS Platform: macOS Sierra
Navigator Platform: MacIntel

Can anybody help me with this weird dark error?

Many thanks!