- ABP Framework version: v6.0.0
- UI type: MVC
- DB provider: EF Core
- Tiered (MVC): no
- Steps to reproduce the issue:"
- Added "datatables.net-buttons": "2.2.3" in package.json
- Run yarn command
- But I dont see the datatables.net-buttons folder created with abp.resourcemapping.js under node_modules.
May I know how this resource mapping works for no-layered MVC application?
6 Answer(s)
-
0
Hi,
I believe you will find relevant information in this document.
-
0
Hi @berkansasmaz, I'm working together with Siva on this.
Can you please point out the relevant section? Because we don't get it.
In the standard sample Layered / MVC application its clear. The abp.resourcemapping.js can be found in the Acme.BookStore.Web project.
However in the NoLayer / MVC application, there is no such file in the whole project.
So lets try again, can somebody - in the paid support channel - tell us how we can add additional libs to our solution. Is the only thing we need to do create the PR as describe in the documentation that you referenced? https://docs.abp.io/en/abp/latest/UI/AspNetCore/Client-Side-Package-Management#package-contribution
-
0
Oops! Really sorry I missed that NoLayer / MVC application. I will create an internal issue on the subject.
Can you try the following steps for a solution?
- Create
abp.resourcemapping.js
in the folder wherepackage.json
is.
abp.resourcemapping.js
module.exports = { aliases: { }, clean: [ ], mappings: { } };
Then, after defining the relevant mapping, simply run the
abp install-libs
command.For example:
package.json
{ "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { ... ... ... "cookieconsent": "^3.1.1", // added with "yarn add cookieconsent" command "jquery-unveil": "^1.3.2" // added with "yarn add jquery-unveil" command } }
abp.resourcemapping.js
module.exports = { aliases: { }, clean: [ ], mappings: { "@node_modules/cookieconsent/build/*": "@libs/cookieconsent/", // added "@node_modules/jquery-unveil/*": "@libs/jquery-unveil/" // added } };
run
abp install-libs
commandAs a result, you can check the
libs
folder underwwwroot
folder.Please let me know if this works or not works for you.
- Create
-
0
Hi Berkansasmaz,
Thanks for the detailed instructions. Its superclear now.
We will try as soon as Siva is back online and get back to you immediately.
KR.
Eric.
-
0
Hi Berkansasmaz,
We can confirm that the solution provided works. Thanks.
Eric.
-
0
Closing the issue. Feel free to re-open or create a new issue if you have further questions.