You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New or existing angular project with esbuild (@angular-devkit/build-angular:browser-esbuild) fails with below error " Property 'index' does not match the schema."
> NX Property 'index' does not match the schema.
{
"description": "Configures the generation of the application's HTML index.",
"oneOf": [
{
"type": "string",
"description": "The path of a file to use for the application's HTML index. The filename of the specified path will be used for the generated file and will be created in the root of the application's configured output path."
},
{
"type": "object",
"description": "",
"properties": {
"input": {
"type": "string",
"minLength": 1,
"description": "The path of a file to use for the application's generated HTML index."
},
"output": {
"type": "string",
"minLength": 1,
"default": "index.html",
"description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
}
},
"required": [
"input"
]
},
{
"const": "false",
"description": "Does not generate an `index.html` file."
}
]
}'
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Ran target build for project nx-esbuild-bug (280ms)
✖ 1/1 failed
✔ 0/1 succeeded [0 read from cache]
ELIFECYCLE Command failed with exit code 1.
Expected Behavior
The build should work as expected and build the project
Go to project and change "executor": "@angular-devkit/build-angular:browser" to "executor": "@angular-devkit/build-angular:browser-esbuild" in project.json of the angular project
pnpm build (create build script). Refer github link for details
> nx run nx-esbuild-bug:build:production
> NX Property 'index' does not match the schema.
{
"description": "Configures the generation of the application's HTML index.",
"oneOf": [
{
"type": "string",
"description": "The path of a file to use for the application's HTML index. The filename of the specified path will be used for the generated file and will be created in the root of the application's configured output path."
},
{
"type": "object",
"description": "",
"properties": {
"input": {
"type": "string",
"minLength": 1,
"description": "The path of a file to use for the application's generated HTML index."
},
"output": {
"type": "string",
"minLength": 1,
"default": "index.html",
"description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
}
},
"required": [
"input"
]
},
{
"const": "false",
"description": "Does not generate an `index.html` file."
}
]
}' —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— > NX Ran target build for project nx-esbuild-bug (379ms) ✖ 1/1 failed ✔ 0/1 succeeded [0 read from cache] ELIFECYCLE Command failed with exit code 1.
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
New or existing angular project with esbuild (@angular-devkit/build-angular:browser-esbuild) fails with below error " Property 'index' does not match the schema."
Expected Behavior
The build should work as expected and build the project
GitHub Repo
https://github.com/pavankjadda/nx-esbuild-bug
Steps to Reproduce
Nx Report
Failure Logs
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: