Angular 16和Brave浏览器问题

huangapple go评论57阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年7月27日 14:38:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/76777080.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定