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

Failed to parse source map #67

Open
hellow554 opened this issue Nov 4, 2023 · 0 comments
Open

Failed to parse source map #67

hellow554 opened this issue Nov 4, 2023 · 0 comments

Comments

@hellow554
Copy link
Contributor

Hey buge,

thanks a lot for this library, I really appreciate it :)

When I add this library via yarn add @buge/ts-units, then do yarn install and yarn start, I receive the following errors:

Failed to parse source map from '/home/marcel/projects/scale_valve/frontend/.yarn/cache/@buge-ts-units-npm-1.2.2-9c71d2edc8-8b1be825cf.zip/node_modules/@buge/src/dimension.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@buge/src/dimension.ts'
Failed to parse source map from '/home/marcel/projects/scale_valve/frontend/.yarn/cache/@buge-ts-units-npm-1.2.2-9c71d2edc8-8b1be825cf.zip/node_modules/@buge/src/exponent.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@buge/src/exponent.ts'
Failed to parse source map from '/home/marcel/projects/scale_valve/frontend/.yarn/cache/@buge-ts-units-npm-1.2.2-9c71d2edc8-8b1be825cf.zip/node_modules/@buge/src/mass/dimension.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@buge/src/mass/dimension.ts'
Failed to parse source map from '/home/marcel/projects/scale_valve/frontend/.yarn/cache/@buge-ts-units-npm-1.2.2-9c71d2edc8-8b1be825cf.zip/node_modules/@buge/src/mass/index.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@buge/src/mass/index.ts'
Failed to parse source map from '/home/marcel/projects/scale_valve/frontend/.yarn/cache/@buge-ts-units-npm-1.2.2-9c71d2edc8-8b1be825cf.zip/node_modules/@buge/src/unit.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@buge/src/unit.ts'

If we take a look at the published dimension.js.map, there is this:

{"version":3,"file":"dimension.js","sourceRoot":"","sources":["../src/dimension.ts"],"...}

but that file won't get published.

Is there a way you can fix this? :)

Many thanks!

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

1 participant