小编Yei*_*onM的帖子

Angular 14,ng 服务错误 - @ngtools/webpack/src/ivy/index.js - 错误:超出最大调用堆栈大小

我正在使用 Angular 14、Node 16 和 TypeScript。我工作正常,但是现在当我执行 ngserve 命令时,出现以下错误:

./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Maximum call stack size exceeded
Run Code Online (Sandbox Code Playgroud)

这是我的 ng 版本

在此输入图像描述

typescript angular-cli

19
推荐指数
3
解决办法
5万
查看次数

当文本大于输入时颤动,文本消失

问题是当文本大于输入大小时,文本就会消失,我不知道为什么。

这是我的代码:

TextField(
    focusNode: _focusEmailNode,
    controller: _emailController,
    decoration: InputDecoration(
    border: OutlineInputBorder(),
    enabledBorder: OutlineInputBorder(
        borderSide: BorderSide(color: txtEmailBoder),
    ),
    hintText: 'Email',
),

Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

flutter

10
推荐指数
3
解决办法
1475
查看次数

Api平台分页json格式

我需要有关 json 格式的 api 平台分页的帮助。

这是我的 api_platform.yaml

api_platform:
    allow_plain_identifiers: true
    mapping:
        paths: ['%kernel.project_dir%/src/Entity']
    formats:
        json:     ['application/json']
Run Code Online (Sandbox Code Playgroud)

当我使用格式 hydra(默认)时,我得到了这样的东西

"hydra:view": {
    "@id": "/api/galleries?page=1",
    "@type": "hydra:PartialCollectionView",
    "hydra:first": "/api/galleries?page=1",
    "hydra:last": "/api/galleries?page=6",
    "hydra:next": "/api/galleries?page=2"
  }
Run Code Online (Sandbox Code Playgroud)

谁能帮我?如果有可能以 json 格式或其他方式使用 api 平台或 symfony 进行分页

谢谢你

symfony api-platform.com

5
推荐指数
1
解决办法
1015
查看次数