< doctype html> 语法错误,javascript - <!DOCTYPE HTML> unexpected token error - Stack Overflow

Im making an AngularJS+AngularFire+Firebase Application.

My problem is same decribed in this post (check post)

but solution there did not help me.

My firebase json is set as follows

{

"hosting": {

"public": "public",

"rewrites": [

{

"source": "**",

"destination": "/index.html"

}

]

}

}

I waas trying to handle browser refresh, thats why I set destination to index.html, I have deployed my app on firebase on this link https://blinding-fire-7418.firebaseapp.com/

When I click on GotoHome then New page open up and then I click on browser refresh button it produces error.

Actually when I browser refresh, firebase unable to find specified URL so firebase rewrites URL to index.html, while loading index.html again it gives below error and contents of angular.min.js are replaced by contents of index.html.

angular.min.js:1 Uncaught SyntaxError: Unexpected token <

angular-route.min.js:1 Uncaught SyntaxError: Unexpected token <

angularfire.min.js:12 Uncaught ReferenceError: angular is not defined(anonymous function) @ angularfire.min.js:12(anonymous function) @ angularfire.min.js:12

App.js:1 Uncaught SyntaxError: Unexpected token <

this is index.html code:

My new Project

my project structure for Scripts folder is below

qidBH.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值