我正在使用 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 版本
问题是当文本大于输入大小时,文本就会消失,我不知道为什么。
这是我的代码:
TextField(
focusNode: _focusEmailNode,
controller: _emailController,
decoration: InputDecoration(
border: OutlineInputBorder(),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: txtEmailBoder),
),
hintText: 'Email',
),
Run Code Online (Sandbox Code Playgroud)
我需要有关 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 进行分页
谢谢你