Input Coercion
When expected as an input type, only integer input values are accepted. All other input values, including strings with numeric content, must raise a query error indicating an incorrect type. If the integer input value represents a value less than -231 or greater than or equal to 231, a query error should be raised.
Note:
Numeric integer values larger than 32‐bit should either use String or a custom‐defined Scalar type, as not all platforms and transports support encoding integer numbers larger than 32‐bit.
とのことだったので、npm i deep-equal して利用してみたところ見事に Uncaught ReferenceError: global is not defined エラーが出たのでその調査と解決の記事。
環境
ライブラリ
バージョン
@angular/core
9.0.6
deep-equal
2.0.1
エラー詳細
ログは以下の通り
index.js:3 Uncaught ReferenceError: global is not defined
at Object../node_modules/has-symbols/index.js (index.js:3)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/es-abstract/GetIntrinsic.js (GetIntrinsic.js:39)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/es-abstract/helpers/callBind.js (callBind.js:5)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/regexp.prototype.flags/index.js (index.js:4)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/deep-equal/index.js (index.js:5)
at __webpack_require__ (bootstrap:79)