英文:
Angular 16 and Brave Browser issues
问题
我开始了一个新的Angular项目(angular.core 16.1.0),基本上里面什么都没有,只有serve。在Edge浏览器中没有问题,但在Brave浏览器中没有显示任何内容,并且在控制台中出现以下错误:
> Uncaught SyntaxError: Unexpected token '=' vendor.js:51165
这是vendor.js中的那一行代码:
partialText = request.responseType === 'text' ? (partialText ?? '') + (decoder ??= new TextDecoder()).decode(value, {
显然,??= 不起作用。
Brave浏览器告诉我它是最新版本。
有人知道这可能是什么原因吗?
这个网站上的示例代码在Brave浏览器上也不起作用:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_assignment
英文:
I started a new Angular project (angular.core 16.1.0) with basically nothing in it just serve. In edge I have no issues but in Brave nothing appears and in the console I get
> Uncaught SyntaxError: Unexpected token '=' vendor.js:51165
This is the line in vendor.js
partialText = request.responseType === 'text' ? (partialText ?? '') + (decoder ??= new TextDecoder()).decode(value, {
Apparently ??= doesn't work.
Brave tells me, it's up to date.
Does anyone have an idea what this might cause?
The example code on this site doesn't work either on brave
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_assignment
答案1
得分: 1
所以显然在勇敢浏览器上,更新功能实际上并不起作用,即使它显示为“最新”,实际上并不是最新的。只需重新安装勇敢浏览器即可解决问题。
英文:
So apparently the update-functionallity doesn't really work on brave, even though it sais "up to date" it really wasn't at all. Just reinstall brave and it works.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论