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

Could not load source file in source map of #2356

Closed
janat08 opened this issue Dec 4, 2018 · 3 comments
Closed

Could not load source file in source map of #2356

janat08 opened this issue Dec 4, 2018 · 3 comments

Comments

@janat08
Copy link

janat08 commented Dec 4, 2018

πŸ› bug report

β€Ό Could not load source file "../src/objectCache.ts" in source map of "../../node_modules/apollo-cache-inmemory/lib/objectCache.js".
After upgrading from 1.06 to 1.10.

πŸŽ› Configuration (.babelrc, package.json, cli command)

janat08/makpal@9d59965

πŸ€” Expected Behavior

For sourcemaps to load

😯 Current Behavior

Sourcemaps don't load. Error/repo above

πŸ’ Possible Solution

I've read that this occurs as result of poor package bundling, but this happens after upgrade, unless the warning where introduced therein.

πŸ”¦ Context

I imagine I can't debug those packages, or get their ts types.

πŸ’» Code Sample

janat08/makpal@9d59965

🌍 Your Environment

Software Version(s)
Parcel 1.10
Node 8
npm/Yarn yarn 1.12
Operating System windows 10
@mischnic
Copy link
Member

mischnic commented Dec 4, 2018

Duplicate of/similar to #2346

@janat08
Copy link
Author

janat08 commented Dec 4, 2018

I think it's a bug and a feature. In my case a regression.

@DeMoorJasper
Copy link
Member

It's not a bug, it's just a warning saying the sourcemaps are refering to files that aren't there.

Which is more an issue with how the package you're using is being publish imo, as sourcemaps are useless if the code behind it isn't available.

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

3 participants