I'm trying to import a 3rd party javascript asset into a ReactJS project. I'm relatively new to React and haven't a need to do this until now (usually everything I need is a npm package and placed in node_modules, however this file does not have an npm package).
I have placed the 3rd party javascript into the /assets/scripts
directory, but when I try to import it gives me and error about You attempted to import <file> which falls outside of the project src/ directory.
error when compiling.
Is there a reliable way to import a 3rd party javascript file (and supporting css files) within a ReactJS project?
Thanks again!