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

Sourcemaps are blank #928

Open
yasonk opened this issue Jan 6, 2022 · 1 comment
Open

Sourcemaps are blank #928

yasonk opened this issue Jan 6, 2022 · 1 comment

Comments

@yasonk
Copy link

yasonk commented Jan 6, 2022

After including history in my package.json dependencies, and running yarn install, the history module appears in my node_modules.
However, sourcemaps for all the files are empty:

{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}

I tried downloading the source and building locally and got the same result (although only index.js was built successfully).

Anyone has empty sourcemaps?
What is the best way to build locally?

@2239559319
Copy link

After including history in my package.json dependencies, and running yarn install, the history module appears in my node_modules. However, sourcemaps for all the files are empty:

{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}

I tried downloading the source and building locally and got the same result (although only index.js was built successfully).

Anyone has empty sourcemaps? What is the best way to build locally?

The reason that the sourcemap cannot be generated correctly is that the sourcemap setting of tsconfig is false by default

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