ExtJs and StackTrace.js

361 views Asked by At

I try to include StackTrace.js in my app but It didn't work.

I try with CDN putting :

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/1.0.1/stacktrace.min.js"></script>

in my index.html

But I have the following error

XMLHttpRequest cannot load https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/1.0.1/stacktrace.min.js.map. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:1841' is therefore not allowed access.

I also try to include all the source but it try to load some ressources when i load my page and I don't understand how to change the location...

Anyhow I don't understand how to properly include this lib in my app in Sencha Cmd properly way...

Thanks in advance

1

There are 1 answers

5
Eric Wendelin On BEST ANSWER

Regarding this error:

XMLHttpRequest cannot load https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/1.0.1/stacktrace.min.js.map...

Note that this is for the source map file and should not affect the libraries effectiveness.

I hope you can verify that stacktrace.min.js loaded in the Network tab of your browser console. If so, then perhaps you can try a simple example from the docs and see if you get a stacktrace or an Error.

If you do get an Error, please post here a little bit more of your code and what you see in your browser console and I'll be happy to help further.