angulartics / angulartics-mixpanel

Mixpanel plugin for Angulartics
MIT License
34 stars 27 forks source link

sourceMappingURL is invalid and causes console error #13

Closed joshuabenson closed 8 years ago

joshuabenson commented 8 years ago

The minified file dist/angulartics-mixpanel.min.js ends with a reference to a source map that cannot be found. This line is shown below:

//# sourceMappingURL=../dist/angulartics-mixpanel.min.js.map

I'm getting this error when angulartics-mixpanel is included on a page:

Error: Could not find source map for: ~/dist/dist/angulartics-mixpanel.min.js.map

As you can see, the path that is searched for the source map file contains /dist/dist/, but of course the actual distribution does not have a nested /dist directory.

joshuabenson commented 8 years ago

Edit: Closing this issue for now. After changing some build steps (gulp) I can't replicate this problem anymore and I'm not getting any errors. I will do some more investigation if I have time later today.