0

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

  • Does this answer your question? [Client on Node.js: Uncaught ReferenceError: require is not defined](https://stackoverflow.com/questions/19059580/client-on-node-js-uncaught-referenceerror-require-is-not-defined) – Tobin May 19 '23 at 08:07
  • I am looking at the top answer, which says to use the – Giannis Petsis May 19 '23 at 08:19

0 Answers0