Open freinbichler opened 4 years ago
I have the same issue. But actually I don't know if, why the .map is needed anyway? till now it worked in all my use cases with this 404 on .map. So why is lottie loading this file and why is the path broken?
For me it is just confusing in the console... :-D
@AlexanderBoenninger are you using the latest version? this would have been fixed in an earlier release. @samuelOsborne did a quick test as well and we don't seem to be running into this issue anymore.
When including the script via the unpkg CDN (https://unpkg.com/@lottiefiles/lottie-player@0.4.0/dist/lottie-player.js), the source map file returns a 404, because the path is specified as
//# sourceMappingURL=/lottie-player.js.map
which tries to load it from https://unpkg.com/lottie-player.js.map, which does of course not exist.The source map path should be changed to
//# sourceMappingURL=lottie-player.js.map
(removed initial slash)