Activities of "trevor.wilson"

I have added a second API to my environment

apis: {
    default: {
      url: 'https://localhost:44360',
      rootNamespace: 'default.namespace',
    },
    myapi: {
      url: 'http://myapi:1234',
      rootNamespace: 'MyProj.myapi',
    },
  },

I would like to generate a proxy the API named myapi. I tried to generate the proxy using the following command:

abp generate-proxy -m myapi -t ng --api-name myapi

The abp cli successfully generated the proxy using this command. I then import the proxy service in my component:

import { MyService } from '@proxy/myproj/root/myservice.service';

but when I make calls to MyService the request has the default base URL. For example, calling myService.getList results in a request that looks like this:

https://localhost:44360/api/myapi/myservice

Why is the base url not being taken from myapi? What am I doing wrong?

I am writing an angular front end to an existing ABP service using the enterprise commercial library. I have a trial license. When I try to run my angular app I see an error in the console that suggests the language-management feature is not installed or running, but I am not sure what I did wrong.

The steps I followed to create the angular front end.

Upgraded abp cli to latest pre-release

$ dotnet tool update -g Volo.Abp.Cli --version 6.0.0-rc.4

Configure my .net api Nuget to point to my trial nuget source and ran abp update

cd myapi
abp update -p --check-all

Generate new angular pro project with leptonx theme

$ abp new myproject -t app-pro --theme leptonx -csf -u angular

I modified the environment to point to myapi and then switch to preview

cd myproject
abp switch-to-preview
npm install
ng build
npm start

When the home page loads I see the following error in the console

core.mjs:6494 ERROR TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at MapSubscriber.mapFn [as project] (volo-abp.ng.language-management-common.mjs:11:1)
    at MapSubscriber._next (map.js:29:1)
    at MapSubscriber.next (Subscriber.js:49:1)
    at FilterSubscriber._next (filter.js:33:1)
    at FilterSubscriber.next (Subscriber.js:49:1)
    at DistinctUntilChangedSubscriber._next (distinctUntilChanged.js:50:1)
    at DistinctUntilChangedSubscriber.next (Subscriber.js:49:1)
    at MapSubscriber._next (map.js:35:1)
    at MapSubscriber.next (Subscriber.js:49:1)
    at BehaviorSubject.next (Subject.js:39:1)

Showing 1 to 2 of 2 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11