Open Closed

Angular generation fails while trying to generate new Entity + Localisation not compiling #10669


User avatar
0
haepeto created

I'm using ABP Suite 10.3.0

I added a simple new Entity to my existing solution. Angular generation does not work anymore, but no error or warning in ABP Studio.

However, in the suite-logfile I was able to find:

2026-05-18 01:09:02.105 +02:00 [INF] 10/12 - GenerateProxyCommand completed. | Duration: 5 ms.

2026-05-18 01:09:02.105 +02:00 [INF] 11/12 - AngularUiGenerateWithSchematicsCommand started... 2026-05-18 01:09:02.128 +02:00 [INF] Running the Angular Schematics command: node run-schematics.mjs "L:/Projects/TVRS/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-pro TVRS "L:/Projects/TVRS/.suite/entities/POI.json" "L:/Projects/TVRS/angular" 2026-05-18 01:09:22.659 +02:00 [INF] Angular Schematics command failed. file:///L:/Projects/TVRS/angular/.suite/schematics/node_modules/execa/lib/return/final-error.js:6 return new ErrorClass(message, options); ^

ExecaError: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g "/Projects/TVRS/angular/.suite/schematics/collection.json:entity" --template app-pro --target TVRS --source "L:/Projects/TVRS/.suite/entities/POI.json"

Expected ',' or '}' after property value in JSON at position 576661 (line 14250 column 15) at getFinalError (file:///L:/Projects/TVRS/angular/.suite/schematics/node_modules/execa/lib/return/final-error.js:6:9) at makeError (file:///L:/Projects/TVRS/angular/.suite/schematics/node_modules/execa/lib/return/result.js:108:16) at getAsyncResult (file:///L:/Projects/TVRS/angular/.suite/schematics/node_modules/execa/lib/methods/main-async.js:168:4) at handlePromise (file:///L:/Projects/TVRS/angular/.suite/schematics/node_modules/execa/lib/methods/main-async.js:151:17) at async file:///L:/Projects/TVRS/angular/.suite/schematics/run-schematics.mjs:13:20 { shortMessage: 'Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g "/Projects/TVRS/angular/.suite/schematics/collection.json:entity" --template app-pro --target TVRS --source "L:/Projects/TVRS/.suite/entities/POI.json"', command: '.suite/schematics/node_modules/.bin/ng g /Projects/TVRS/angular/.suite/schematics/collection.json:entity --template app-pro --target TVRS --source L:/Projects/TVRS/.suite/entities/POI.json', escapedCommand: '.suite/schematics/node_modules/.bin/ng g "/Projects/TVRS/angular/.suite/schematics/collection.json:entity" --template app-pro --target TVRS --source "L:/Projects/TVRS/.suite/entities/POI.json"', cwd: 'L:\Projects\TVRS\angular', durationMs: 16826.3783, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: "\x1B[1m\x1B[31mExpected ',' or '}' after property value in JSON at position 576661 (line 14250 column 15)\x1B[39m\x1B[22m", stdio: [ undefined, '', "\x1B[1m\x1B[31mExpected ',' or '}' after property value in JSON at position 576661 (line 14250 column 15)\x1B[39m\x1B[22m" ], ipcOutput: [], pipedFrom: [] }

Node.js v24.13.1

2026-05-18 01:09:22.998 +02:00 [INF] 11/12 - AngularUiGenerateWithSchematicsCommand completed. | Duration: 20892 ms. ....

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

9 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • The schematics process is failing before it can generate anything because the --source file passed to the schematic is invalid JSON:
      • --source "L:/Projects/TVRS/.suite/entities/POI.json"
      • Error: Expected ',' or '}' after property value in JSON ... (line 14250 column 15)

    Fix

    1. Open this file and validate/repair it:
      • L:/Projects/TVRS/.suite/entities/POI.json
    2. Typical causes in Suite entity JSON:
      • trailing comma
      • unescaped quotes inside a string (e.g., " inside a display name/description)
      • copy/paste that introduced a control character
    3. After fixing JSON, re-run the entity UI generation in ABP Suite.

    Also check your Node.js version

    You are running Node.js v24.13.1. That’s a very new major version and may not be what the ABP Suite bundled Angular tooling was tested with. If the JSON is valid but you still hit issues, switch to an LTS Node version commonly used by Angular tooling (e.g., Node 20/22 LTS), then retry.

    (Primary issue from the log is still the invalid JSON in POI.json.)

    Links:

    • https://abp.io/docs/latest/framework/ui/angular/quick-start

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    haepeto created

    I don't see any problem with the POI.json file. How can I send it over for you to investigate?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • Please don’t paste the whole file here if it contains any sensitive info.
    • The standard way to share Suite/Studio reproduction materials is to contact ABP support via the contact form and attach the file (or a minimal reproducible project / the single POI.json).

    Use this link (verified reachable):

    • https://abp.io/contact

    What to send:

    1. L:/Projects/TVRS/.suite/entities/POI.json (the exact file referenced in the log)
    2. The Suite log file that contains the failing schematics command
    3. (Optional but helpful) a zip of .suite folder and the angular/.suite folder if the issue reproduces only with certain schematics/templates.

    If you want to self-diagnose locally before sending:

    • Run a strict JSON parse on that file (this will point to the exact line/column):
    node -e "JSON.parse(require('fs').readFileSync('L:/Projects/TVRS/.suite/entities/POI.json','utf8')); console.log('OK')"
    

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    haepeto created

    The local self-diagnose shows OK as output, so that means that the POI.json file is fine. I also generated another entity, with the same result.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Hello,

    Thank you for sharing the related files and folders. I reviewed them and generated the code on my end; however, I was unable to reproduce the issue you described. Because of this, I suspect there may be a version mismatch between your application and the installed Suite version.

    You can check your Suite version through ABP Studio as explained here: ABP Studio – Automatic Version Matching

    Please ensure that the ABP Suite version is set to 10.3.0 if your project is also using version 10.3.0.

    If the issue persists after verifying the versions, could you also share the .suite folder located under the angular directory?

    Thank you for your cooperation.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    haepeto created

    Actually, I was nudged into upgrading to 10.4, and that magically fixed things. At least, the Angular generation issue. So the .suite folder located under the angular directory has been changed by now, and I didn't keep the zip file, sorry. It might be interesting to get some "cleaning" instructions, on how to start over with the Schematics components. Where can I find it?

    I do have another issue however, that I thought to be related, but it turns out it doesn't .

    The app translations are not working anymore since the upgrade to 10.3. You can see the effect on https://dev.tvrs.thconsulting.be/, even when not logged in.

    I do have my json resources files available, and the build just works as before. On my development machine (and that of my co-workers) everything works just fine. But the build and deploy to azure doesn't work. PS: I have 4 languages: en, fr, nl and nl-be. How do I troubleshoot this, and what are the typical issues with it? I don't even know how the framework is actually providing the translation resources to the user interface. Are they compiled into the angular static files, or to they reside in the backend swagger api?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    haepeto created

    When I call https://backend.dev.tvrs.thconsulting.be/api/abp/application-localization?CultureName=en&OnlyDynamics=false I see a lot of return, but nothing specific to my own solution tvrs, only standard ABP messages

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Actually, I was nudged into upgrading to 10.4, and that magically fixed things. At least, the Angular generation issue. So the .suite folder located under the angular directory has been changed by now, and I didn't keep the zip file, sorry. It might be interesting to get some "cleaning" instructions, on how to start over with the Schematics components. Where can I find it?

    Thank you for your response. You can check the ABP Suite version through the ABP Studio tool by following this document: Automatic Version Matching

    To clear any potential Angular-side cache issues, you can delete the temporary .suite, node_modules, and yarn.lock files/folders. After that, reinstall the dependencies and run code generation again using the Suite tool. This process will automatically recreate a fresh .suite folder in the same location.

    I do have another issue however, that I thought to be related, but it turns out it doesn't .

    The app translations are not working anymore since the upgrade to 10.3. You can see the effect on https://dev.tvrs.thconsulting.be/, even when not logged in.

    After reviewing your deployed website, I noticed that the following request does not return the expected localization key-value pairs:

    api/abp/application-localization?CultureName=en&OnlyDynamics=false

    This indicates that localization may not be functioning correctly in the deployed environment. You can review the following resources for more detailed information:

    When I call https://backend.dev.tvrs.thconsulting.be/api/abp/application-localization?CultureName=en&OnlyDynamics=false I see a lot of return, but nothing specific to my own solution tvrs, only standard ABP messages

    From this perspective, your custom translations should appear under the following scope:

    "TVRS": {
      "texts": {},
      "baseResources": ["AbpValidation","AbpUi"]
    },
    

    You can let us know if you need any further assistance. Thank you for your cooperation.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    haepeto created

    After carefully reviewing https://abp.io/docs/latest/framework/fundamentals/localization I had to make a few changes, repair a broken dependency, and also, maybe not necessary, but my resource files got capitalised first nodes, and json is case sensitive, so I thought i should fix it. And also in HttpApi.Host, appSettings: "Settings": { "Abp.Localization.DefaultLanguage": "en" }

    Finally it resumed to work.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.