Starts in:
2 DAYS
13 HRS
8 MIN
36 SEC
Starts in:
2 D
13 H
8 M
36 S
Open Closed

Angular generate-proxy root namespace options #6235


User avatar
0
Thiqah.Abp.Dev4 created
  • ABP Framework version: v7.3.2
  • UI Type: Angular

I don't use "environment.ts" and everything is working correctly but when I generate proxy "**abp generate-proxy -t ng --url myApi **" my issue appeared when I generated a proxy without a namespace and I couldn't add options and I tried all "generate-proxy " options [[Root Namespace Not Found] Cannot resolve root namespace for "default" api from "myProjectNameSpace" project.]


6 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    Please make sure that you are running the abp generate-proxy -t ng --url myApi command in the root folder.

    you can check here: https://docs.abp.io/en/abp/latest/UI/Angular/Service-Proxies#service-proxies

    Thanks, Anjali

  • User Avatar
    0
    Thiqah.Abp.Dev4 created

    Hello,

    Please make sure that you are running the abp generate-proxy -t ng --url myApi command in the root folder.

    you can check here: https://docs.abp.io/en/abp/latest/UI/Angular/Service-Proxies#service-proxies

    Thanks, Anjali

    Actually i was in root folder

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    try to add below code in MyApp\aspnet-core\src\MyaApp.HttpApi.Host\web.config

    thanks

  • User Avatar
    -1
    mahmut.gundogdu created

    Hello,

    Please make sure that you are running the abp generate-proxy -t ng --url myApi command in the root folder.

    you can check here: https://docs.abp.io/en/abp/latest/UI/Angular/Service-Proxies#service-proxies

    Thanks,
    Anjali

    Actually i was in root folder

    Abp generate-proxy -t ng wrapped@abp/ng.schematics schematic packages. when you use @abp/ng.schematics you can spesify where is the extract path. that parameter is entryPoint. Probably the parameter works with abp generate-proxy. you can read paramters of generate proxies

    https://docs.abp.io/en/abp/8.0/UI/Angular/Service-Proxies#parameters-of-generate-proxy

  • User Avatar
    0
    Thiqah.Abp.Dev4 created

    Hi,

    try to add below code in MyApp\aspnet-core\src\MyaApp.HttpApi.Host\web.config

    thanks

    i wanna just edit from frontend

  • User Avatar
    -1
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Is this document helpful to you? https://docs.abp.io/en/abp/latest/CLI#options-6

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06