Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning because of types not correctly mapped #86

Closed
rgazelot opened this issue Apr 15, 2022 · 3 comments
Closed

Warning because of types not correctly mapped #86

rgazelot opened this issue Apr 15, 2022 · 3 comments

Comments

@rgazelot
Copy link

Hello

When I start my server or build my project using CRA v5 I have these messages:

WARNING in ./node_modules/@lottiefiles/react-lottie-player/dist/lottie-react.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/node_modules/@lottiefiles/react-lottie-player/src/Seeker.tsx' 
file: Error: ENOENT: no such file or directory, open '/node_modules/@lottiefiles/react-lottie-player/src/Seeker.tsx'

In fact types are located in /node_modules/@lottiefiles/react-lottie-player/dist/src but it seems that the lottie-react.esm.js.map says:

{"version":3,"file":"lottie-react.esm.js","sources":["../src/Player.tsx","../node_modules/style-inject/dist/style-inject.es.js","../src/ColorPicker.tsx","../src/Popover.tsx","../src/Seeker.tsx","../src/Controls.tsx"] ...}

The source map file is pointing to ../src instead of /src.

I don't really know if it's a config issue on my side or the package was badly built and published on npm.

Thanks a lot for your help

@samuelOsborne
Copy link
Member

Thanks for creating this issue @rgazelot, looking in to it.

@samuelOsborne samuelOsborne mentioned this issue May 2, 2022
1 task
@samuelOsborne
Copy link
Member

hey @rgazelot, this should be fixed with v3.4.6. Cheers!

@rgazelot
Copy link
Author

I confirm that I don't have the warnings anymore. Good job team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants