-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReferenceError: projectName is not defined in ServiceProxyScript #20158
Comments
Project with issue: DotnetAbp.Issues.Web.ServiceProxyScript |
hi Steps needed to reproduce the problem. |
Hi, To reproduce the problem, please follow these steps:
You should see the error "Uncaught ReferenceError: exch is not defined" in the console. Please let me know if you need any further information |
hi You are using the |
Hi, We added TransferController in the Exch.HttpApi project, but the issue persists. Is there any way to make it dynamic like Auto API Controllers? |
using Exch.App.Transfers;
using Exch.App.Transfers.Dtos;
using System.Threading.Tasks;
using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
namespace Exch.Controllers.App.Transfers;
[Controller]
[RemoteService(Name = "Exch")]
[Area("Exch")]
[ControllerName("Exch")]
[Route("/api/app/transfers")]
public class TransferController(ITransferAppService transferAppService) : ExchController
{
private readonly ITransferAppService _transferAppService = transferAppService;
public Task<TransferDto> CreateAsync(TransferCreateDto input)
{
return _transferAppService.CreateAsync(input);
}
public Task<TransferDto> UpdateAsync(int id, TransferUpdateDto input)
{
return _transferAppService.UpdateAsync(id, input);
}
public Task<TransferDto> GetAsync(int id)
{
return _transferAppService.GetAsync(id);
}
public Task<PagedResultDto<TransferDto>> GetListAsync(TransferGetListInput input)
{
return _transferAppService.GetListAsync(input);
}
public Task DeleteAsync(int id)
{
return _transferAppService.DeleteAsync(id);
}
} |
Thank u @maliming |
Hi
In the ServiceProxyScript file, there is no reference to "projectName."
As a result, the following error occurs in the web console: "Uncaught ReferenceError: projectName is not defined."
Abp version 8.0.0
ServiceProxyScript:
Feel free to let me know if you need any additional changes!
The text was updated successfully, but these errors were encountered: