Splunk Enterprise

How to resolve failures in app-inspect | check_hotlinking_splunk_web_libraries?

jabezds
Path Finder

Hi All,

 We are facing a issue when running app inspect(version 2.22.0) report on our app, below is the failure we see:

Embed all your app's front-end JS dependencies in the /appserver directory. If you import files from Splunk Web, your app might fail when Splunk Web updates in the future. Bad imports: ['moment'] File: /tmp/tmpylhrwm6y/cisco-cloud-security/appserver/static/vendor/chartjs/Chart.min.js
Embed all your app's front-end JS dependencies in the /appserver directory. If you import files from Splunk Web, your app might fail when Splunk Web updates in the future. Bad imports: ['moment'] File: /tmp/tmpylhrwm6y/cisco-cloud-security/appserver/static/vendor/chartjs/Chart.js
Embed all your app's front-end JS dependencies in the /appserver directory. If you import files from Splunk Web, your app might fail when Splunk Web updates in the future. Bad imports: ['moment'] File: /tmp/tmpylhrwm6y/cisco-cloud-security/appserver/static/vendor/daterangepicker/daterangepicker.min.js

As per the error description we have placed all our Js dependencies under /appserver folder, but we still see this failure.

Any help or suggestion are highly appreciated.

 

Thanks,

Jabez.

0 Karma

jabezds
Path Finder

An update , We where asked to check if the below link is a possible solution. 

https://stackoverflow.com/questions/59876585/npm-package-json-aliases-like-webpack 

But as per the link we don't have the package.json file itself. So is there any another reason why im seeing this failure .Any suggestion is highly appreciated.

Thanks.

0 Karma

nrinugala
New Member

Did you find any solution? I am also facing same issue.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...