LottieFiles / lottie-player

Lottie viewer/player as an easy to use web component! https://lottiefiles.com/web-player
MIT License
1.56k stars 179 forks source link

Incorrect path to source map file #38

Open freinbichler opened 4 years ago

freinbichler commented 4 years ago

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)

AlexanderBoenninger commented 2 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

karamalie commented 2 years ago

@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.