Closed diegoalmesp closed 8 years ago
Found it! I'm answering myself again hehe:
the Jquery object was inside window.$ so the react component couldn't find it. so I just added:
let $ = window.$ || {};
at the top of the component file and now it works perfect.
Thanks!
Hello guys! I'm working with jquery to make a post call inside a component.
My problem is that, minimist (I guess) is changing the $ sign to a p. So, in the distributed app.js file I have an error where I make that call, the error is:
When I click on it, the map file shows me the code was:
Btw, I'm building a component for an existing webpage, so I have to use the jquery that's already there.
I couldn't find any place to add exceptions to minimist. Is there any config file for this? I'm still not sure this is my problem. Maybe I can try something else?
I hope you can help me. Thanks in advance!