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

Update source-map #27

Merged
merged 1 commit into from Nov 4, 2017
Merged

Update source-map #27

merged 1 commit into from Nov 4, 2017

Conversation

mattdsteele
Copy link
Contributor

Hi! This applies the fix as identified in mozilla/source-map#247

I've got a project that fails to build with the TypeError: Cannot read property 'substr' of undefined error as outlined in the above link. Manually updating source-map resolves it, and unfortunately we can't build our project until webpack-sources uses this version.

Thanks!

@jsf-clabot
Copy link

jsf-clabot commented Oct 2, 2017

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Oct 2, 2017

Codecov Report

Merging #27 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #27   +/-   ##
=======================================
  Coverage   70.84%   70.84%           
=======================================
  Files          11       11           
  Lines         415      415           
  Branches       64       64           
=======================================
  Hits          294      294           
  Misses        121      121

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ccc3e33...a241715. Read the comment docs.

@Hotell
Copy link

Hotell commented Nov 1, 2017

any update on this? source-map-loader is unusable without this

image

@tomasdev
Copy link

tomasdev commented Nov 3, 2017

Can we get this merged please??

See @Hotell above

@joshwiens
Copy link
Member

Working on getting someone with access to land this & get it out to npm.

@TheLarkInn
Copy link
Member

Hi so sorry about the delay on this @sokra and myself are catching up from a week off. Will try to deliver this tonight

@TheLarkInn TheLarkInn merged commit be42d64 into webpack:master Nov 4, 2017
@TheLarkInn
Copy link
Member

https://github.com/webpack/webpack-sources/releases/tag/v1.0.2 Release'd and available on NPM. Sorry for the delay, and really appreciate the patience.

@wvankuipers
Copy link

wvankuipers commented Nov 4, 2017

This update seems to create another issue (noting this here as I'm not sure what is the root cause of this atm):

frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:276
        throw new Error(
        ^

Error: original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.
    at SourceMapGenerator_validateMapping [as _validateMapping] (frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:276:15)
    at SourceMapGenerator_addMapping [as addMapping] (frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:110:12)
    at frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:72:17
    at Array.forEach (<anonymous>)
    at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-consumer.js:157:14)
    at Function.SourceMapGenerator_fromSourceMap [as fromSourceMap] (frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:48:24)
    at SourceMapSource.node (frontend/node_modules/webpack-sources/lib/SourceMapSource.js:32:35)
    at SourceMapSource.proto.sourceAndMap (frontend/node_modules/webpack-sources/lib/SourceAndMapMixin.js:30:18)
    at getTaskForFile (frontend/node_modules/webpack/lib/SourceMapDevToolPlugin.js:33:30)
    at chunk.files.forEach.file (frontend/node_modules/webpack/lib/SourceMapDevToolPlugin.js:91:21)

Reverting to v1.0.1 resolves this issue.

@TheLarkInn
Copy link
Member

@mattdsteele are you aware of this? Should we submit an issue on the original source-map repo IRT this?

@mattdsteele
Copy link
Contributor Author

Hmm; I haven't tried to reproduce. I'll see what's up.

@mattdsteele
Copy link
Contributor Author

@wvankuipers I pulled down 1.0.2 in a couple of my projects but I wasn't able to reproduce what you're seeing. Based on what you've researched in #28 it appears to be source-map related, so that repo probably should be notified.

@joshwiens
Copy link
Member

There is more information in the new issue created, it's not directly related to webpack-sources

RubenVerborgh added a commit to SolidOS/mashlib that referenced this pull request Nov 22, 2017
This fixes compilation on Node 6.x.
Should be removed later when this bug is fixed in webpack-sources.
webpack/webpack-sources#27 (comment)
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

Successfully merging this pull request may close these issues.

None yet

8 participants