Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Strange deployment error

$
0
0

While working on my next Ionic 2 article, I stumbled on a strange error.

Usually, while writing articles, I like to create a working example I can embed into it. This way my readers can play with provided code.

Unfortunately, Ionic 2 application architecture makes it impossible to import into the current Plunker (plnkr.co). I tried to deploy it on my local Windows Apache server, and everything worked just fine.

Then I moved it to my hosted Linux Apache server and at that point everything went to he**.

This is the link: http://example.gajotres.net/ionic2/example001/www/

I received this error:


EXCEPTION: Template parse errors:
Only void and foreign elements can be self closed "head" ("[ERROR ->]<head/><ion-nav id="nav" [root]="rootPage" swipe-back-enabled="false"></ion-nav>
"): MyApp@0:0

	STACKTRACE:BrowserDomAdapter.logError @ app.bundle.js:33679
	app.bundle.js:33679 Error: Template parse errors:
	Only void and foreign elements can be self closed "head" ("[ERROR ->]<head/><ion-nav id="nav" [root]="rootPage" swipe-back-enabled="false"></ion-nav>
	"): MyApp@0:0
		at new BaseException (app.bundle.js:7701)
		at TemplateNormalizer.normalizeLoadedTemplate (app.bundle.js:39564)
		at app.bundle.js:39553
		at Zone.run (app.bundle.js:1183)
		at Zone.run (app.bundle.js:17359)
		at zoneBoundFn (app.bundle.js:1156)
		at lib$es6$promise$$internal$$tryCatch (app.bundle.js:2556)
		at lib$es6$promise$$internal$$invokeCallback (app.bundle.js:2568)
		at lib$es6$promise$$internal$$publish (app.bundle.js:2539)
		at app.bundle.js:1288

Had anyone saw something similar?

I googled this error but can't find anything even close resembling this error.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>