Skip to content

Missing source maps v8 #5416

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

Open
Donorlin opened this issue Feb 14, 2025 · 5 comments
Open

Missing source maps v8 #5416

Donorlin opened this issue Feb 14, 2025 · 5 comments

Comments

@Donorlin
Copy link

Describe the bug
I am using latest webpack, with latest source-map-loader and i am getting errors like this when importing latest version of react-datepicker.

Failed to parse source map from '*****/node_modules/react-datepicker/src/year_dropdown_options.tsx' file: Error: ENOENT: no such file or directory, open '*****/node_modules/react-datepicker/src/year_dropdown_options.tsx'

By the looks of it, you really do not include either sources or inlined source maps ("inlineSources": true, in tsconfig.json) in your built package.

Expected behavior
Built package should contain source maps in some way.

@dattm97
Copy link

dattm97 commented Feb 24, 2025

I have same issue. Can you take a look? @martijnrusschen

@marcomontalbano
Copy link

marcomontalbano commented Feb 24, 2025

I've the same issue here. I prepared a minimal reproduction.

If you look at the terminal, you can notice that source files from src folder are missing. I'm using vite + vitest.

Image showing a list of missing source files

@martijnrusschen
Copy link
Member

martijnrusschen commented Feb 24, 2025 via email

@Palavesh-KF
Copy link

Adding GENERATE_SOURCEMAP=false to the .env file resolves this issue.

@kris2kris
Copy link

kris2kris commented Mar 7, 2025

I have the same problem and this option only removes the warning but does not resolve the issue

Adding GENERATE_SOURCEMAP=false to the .env file resolves this issue.

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

6 participants