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

webpack mapping issue on build #42

Open
Keiwen opened this issue Nov 6, 2017 · 3 comments
Open

webpack mapping issue on build #42

Keiwen opened this issue Nov 6, 2017 · 3 comments

Comments

@Keiwen
Copy link

Keiwen commented Nov 6, 2017

Hey there,
I just downloaded your project, run npm install then build-src, and i got a webpack issue:

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] (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack-sources\node_modules\source-map\lib\source-map-generator.js:276:15)
at SourceMapGenerator_addMapping [as addMapping] (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack-sources\node_modules\source-map\lib\source-map-generator.js:110:12)
at C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack-sources\node_modules\source-map\lib\source-map-generator.js:72:17
at Array.forEach ()
at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack-sources\node_modules\source-map\lib\source-map-consumer.js:157:14)
at Function.SourceMapGenerator_fromSourceMap [as fromSourceMap] (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack-sources\node_modules\source-map\lib\source-map-generator.js:48:24)
at SourceMapSource.node (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack-sources\lib\SourceMapSource.js:32:35)
at SourceMapSource.proto.sourceAndMap (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack-sources\lib\SourceAndMapMixin.js:30:18)
at getTaskForFile (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\SourceMapDevToolPlugin.js:33:30)
at chunk.files.forEach.file (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\SourceMapDevToolPlugin.js:91:21)
at Array.forEach ()
at C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\SourceMapDevToolPlugin.js:89:18
at Array.forEach ()
at Compilation. (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\SourceMapDevToolPlugin.js:88:12)
at Compilation.applyPlugins1 (C:\nodejs\projects\sweet-modal-vue-master\node_modules\tapable\lib\Tapable.js:75:14)
at self.applyPluginsAsync.err (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\Compilation.js:670:11)
at next (C:\nodejs\projects\sweet-modal-vue-master\node_modules\tapable\lib\Tapable.js:202:11)
at Compilation.compilation.plugin (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\ProgressPlugin.js:119:6)
at next (C:\nodejs\projects\sweet-modal-vue-master\node_modules\tapable\lib\Tapable.js:204:14)
at Compilation. (C:\nodejs\projects\sweet-modal-vue-master\node_modules\babel-minify-webpack-plugin\dist\index.js:119:11)
at Compilation.applyPluginsAsyncSeries (C:\nodejs\projects\sweet-modal-vue-master\node_modules\tapable\lib\Tapable.js:206:13)
at self.applyPluginsAsync.err (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\Compilation.js:666:10)
at next (C:\nodejs\projects\sweet-modal-vue-master\node_modules\tapable\lib\Tapable.js:202:11)
at Compilation.compilation.plugin.callback (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\ProgressPlugin.js:115:6)
at Compilation.applyPluginsAsyncSeries (C:\nodejs\projects\sweet-modal-vue-master\node_modules\tapable\lib\Tapable.js:206:13)
at sealPart2 (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\Compilation.js:662:9)
at next (C:\nodejs\projects\sweet-modal-vue-master\node_modules\tapable\lib\Tapable.js:202:11)
at Compilation.compilation.plugin (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\ProgressPlugin.js:111:6)
at Compilation.applyPluginsAsyncSeries (C:\nodejs\projects\sweet-modal-vue-master\node_modules\tapable\lib\Tapable.js:206:13)
at Compilation.seal (C:\nodejs\projects\sweet-modal-vue-master\node_modules\webpack\lib\Compilation.js:605:8)

Yeah, I'm working on windows :)
Didn't touch anything yet. I know this is a webpack issue, but any idea? Am I the only one to not successfully build your project? I didn't found anything on web so far and i'm quite bad at webpack things!

@Keiwen
Copy link
Author

Keiwen commented Nov 7, 2017

Hmmm works with devtool "eval" tho

@bluefirex
Copy link
Member

Yeah I noticed issues with some devtool configuration options. I'm not sure why, though.

@KennetSundien
Copy link

In devDependencies add this line:
"webpack-sources": "1.0.1",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants