Provide us with the following info:
- Template: app
- Created ABP Studio Version: 1.1.2
- Current ABP Studio Version: 1.1.2
- Tiered: Yes
- Multi-Tenancy: No
- UI Framework: angular
- Theme: leptonx
- Theme Style: system
- Theme Menu Placement: side
- Run Install Libs: Yes
- Progressive Web App: No
- Run Progressive Web App Support: No
- Database Provider: ef
- Database Management System: sqlserver
- Separate Tenant Schema: No
- Create Initial Migration: No
- Run Db Migrator: No
- Mobile Framework: none
- Public Website: No
- Social Login: No
- Include Tests: No
- Kubernetes Configuration: Yes
- Distributed Event Bus: none
- Use Local References: No
- Optional Modules:
- LanguageManagement
- AuditLogging
- OpenIddictAdmin
- Selected Languages: English, English (United Kingdom), 简体中文, Español, العربية, हिन्दी, Português (Brasil), Français, Русский, Deutsch (Deutschland), Türkçe, Italiano, Čeština, Magyar, Română (România), Svenska, Suomi, Slovenčina, Íslenska, 繁體中文
- Default Language: English
- Create Command: abp new Acs.Cts.WorkforceManagement -t app --tiered --ui-framework angular --database-provider ef --database-management-system sqlserver --theme leptonx --skip-migration --skip-migrator --no-tests --without-cms-kit --dont-run-bundling --no-multi-tenancy --no-social-logins -no-saas -no-gdpr -no-file-management -no-text-template-management
When I start the Auth Server, I get an error: "The 'wwwroot/libs' folder does not exist or empty! If your application does not use any client-side libraries, you can disable this check by setting 'AbpMvcLibsOptions.CheckLibs' to 'false'".
I check the path "..AuthServer\wwwroot\libs" and sure enough its empty.
I run abp install-libs again and the folder is still empty: C:\Users\Jamie\Repo\AbpStudio\Acs\modules\Acs.Cts.WorkforceManagement\src\Acs.Cts.WorkforceManagement.AuthServer>abp install-libs [11:45:14 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli [11:45:15 INF] Found 1 projects. [11:45:15 INF] C:\Users\Jamie\Repo\AbpStudio\Acs\modules\Acs.Cts.WorkforceManagement\src\Acs.Cts.WorkforceManagement.AuthServer [11:45:15 INF] Running Yarn on C:\Users\Jamie\Repo\AbpStudio\Acs\modules\Acs.Cts.WorkforceManagement\src\Acs.Cts.WorkforceManagement.AuthServer ➤ YN0000: ┌ Resolution step ➤ YN0002: │ @abp/bootstrap@npm:9.2.4 doesn't provide @popperjs/core (p97d37), requested by bootstrap ➤ YN0002: │ @abp/jquery-validation@npm:9.2.4 doesn't provide jquery (pcfe0e), requested by jquery-validation ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code ➤ YN0000: └ Completed ➤ YN0000: ┌ Fetch step ➤ YN0000: └ Completed ➤ YN0000: ┌ Link step ➤ YN0000: └ Completed ➤ YN0000: Done with warnings in 0s 273ms
I tried the following, to no effect:
- uninstalling abp cli and reinstalling it
- created new solutions
- manually running abp install-libs
6 Answer(s)
-
0
The error "The 'wwwroot/libs' folder does not exist or empty!" occurs because the AuthServer project expects client-side libraries in the wwwroot/libs directory, but for Angular UI projects, the AuthServer does not require these libraries by default.
In Angular-based ABP solutions, the AuthServer project is typically a pure backend (API and authentication) project and does not serve static client-side assets. The wwwroot/libs folder is only necessary for MVC or Blazor UI projects.
To resolve this, you should disable the check for the libs folder in your AuthServer project. Open your AuthServer's module class (e.g., AcsCtsWorkforceManagementAuthServerModule.cs) and add the following configuration in the ConfigureServices method:
Configure<AbpMvcLibsOptions>(options => { options.CheckLibs = false; });
This will prevent the application from checking for the wwwroot/libs folder on startup.
You do not need to run abp install-libs in the AuthServer project for Angular UI solutions.
Sources:
- https://abp.io/docs/latest/tutorials/book-store/part-01
- https://abp.io/docs/latest/framework/ui/mvc-razor-pages/bundling-minification
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.
-
0
This project has a stand-alone MVC auth server for logging in, in addition to the angular app.
Another project also has the public website MVC app and the same issue appears there
-
0
hi
Can you share the
package.json
file in yourAuthServer
?What is the full output if you run
yarn
inAuthServer
?liming.ma@volosoft.com
Thanks.
-
0
Here's my package.json:
{ "version": "0.1.0", "name": "my-app-authserver", "private": true, "dependencies": { "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~4.3.1", "@volo/account": "~9.3.1" } }
yarn output:
yarn install v1.22.5 (node:12724) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created) [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... warning "@volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/bootstrap > bootstrap@5.3.7" has unmet peer dependency "@popperjs/core@^2.11.8". [4/4] Building fresh packages...success Saved lockfile. warning Your current version of Yarn is out of date. The latest version is "1.22.22", while you're on "1.22.5". info To upgrade, download the latest installer at "https://yarnpkg.com/latest.msi". Done in 8.74s.
-
0
I reinstalled yarn and it works now
-
0
Great 👍