abp icon indicating copy to clipboard operation
abp copied to clipboard

ABP 9 and wwwroot/libs

Open gvassao opened this issue 1 year ago • 7 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

After I upgraded my ABP 8.0.2 to 9.0.2, when I run the .Host project it shows the message:

The Libs folder under the wwwroot/libs directory is empty!
The Libs folder contains mandatory NPM Packages for running the project.

Make sure you run the abp install-libs CLI tool command.

For more information, check out the [ABP CLI documentation](https://abp.io/docs/latest/CLI#install-libs)

It seems that the separated auth server is now behind a paywall. My solution was generated before it became a paid feature.

Running abp install-libs, installs the libs on my .AuthServer project not on my .Host project and now the .Host project complains it doesn't have that folder when it shouldn't need anyway because my auth server is on a separate project

Reproduction Steps

Run abp update on a 8.0.2 solution

Followed https://learn.microsoft.com/en-us/aspnet/core/migration/80-90?view=aspnetcore-9.0&tabs=visual-studio to upgrade everything else

Compile the solution

dotnet run on the .Host project and open the url on the browser

Expected behavior

Apps runs successfully

Actual behavior

App crashses with the message:

The Libs folder under the wwwroot/libs directory is empty!
The Libs folder contains mandatory NPM Packages for running the project.

Make sure you run the abp install-libs CLI tool command.

For more information, check out the [ABP CLI documentation](https://abp.io/docs/latest/CLI#install-libs)

Regression?

No response

Known Workarounds

Manually copy the libs folder from AuthServer to Host project

Version

8.0.2 to 9.0.2

User Interface

Angular

Database Provider

EF Core (Default)

Tiered or separate authentication server

Separate Auth Server

Operation System

Windows (Default)

Other information

No response

gvassao avatar Dec 20 '24 06:12 gvassao

I also encountered the same problem. I just want to use WebAPI through Abp and provide interface documentation through Swagger. I don't need the homepage stuff, why do I have to ask for the wwwroot/lib folder

oufu99 avatar Dec 23 '24 13:12 oufu99

hi

After I upgraded my ABP 8.0.2 to 9.0.2, when I run the .Host project it shows the message:

Can you share a project to reproduce?

Thanks.

maliming avatar Dec 24 '24 01:12 maliming

Same problem from 8.1.5 to 8.2.0.

fl95149 avatar Dec 25 '24 17:12 fl95149

Can anyone share a project to reproduce the problem?

maliming avatar Dec 26 '24 00:12 maliming

My app is very basic. As you can tell, I use Swashbuckle, provided by ABP.

In my situation, I upgraded from v8 to v9. If you are able to open one of your v8 API projects (i.e. no UI) where you don't have a package.json and if you upgrade that to v9, you will be able to reproduce that.

Please note that I had to manually copy the libs folder indicated below as I don't have package.json as part of my project

image

osilvaa avatar Dec 26 '24 11:12 osilvaa

hi

You can disable the CheckLibs feature. I will find a way to prevent this.

Configure<AbpMvcLibsOptions>(options =>
{
    options.CheckLibs = false;
});

maliming avatar Dec 26 '24 11:12 maliming

We have added how to disable check libs on the error page.

image

maliming avatar Dec 27 '24 00:12 maliming