I am developing a custom app and I am using React to build an user interface for it. I have tested on my local and it works well. But when I copy all files to /opt/splunk/etc/apps/flowdock/default/data/ui/alerts this directory, I got error like below picture:
How can we solve this issue? Thanks in advance.
There are quite many similar questions already e.g. below
The correct place to JS and CSS is
are you using simpleXML or pure html files (converted from simpleXML)?
I think that the solution could be more simple if all JS files are in one place and you then include those to the dashboards.
Basically this file is the form, where we get inputs from users, when they are creating alerts. For the dashboards, sure we are able to run js and I am building a custom dashboard using React and it works.
Here's the content of my HTML file: