I have an issue. I want to call a function from a js file in my Ionic project. When running the js file alone, the code works exactly as expected, but when im declaring the function from a typescript file, im getting the error : 'require is not defined'. Any ideas?
Thank you