Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

poi-preset-babel-minify currently fails because of webpack-sources dep #377

Closed
OmgImAlexis opened this issue Feb 4, 2018 · 1 comment
Closed
Labels

Comments

@OmgImAlexis
Copy link

Currently adding poi-preset-babel-minify to a poi project will cause an error to be thrown.

I'm opening this issue so the upstream bug can be tracked incase there's something that needs to be updated here. webpack/webpack-sources#28

 92% chunk asset optimization/Users/xo/code/agendash/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] (/Users/xo/code/agendash/frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:276:15)
    at SourceMapGenerator_addMapping [as addMapping] (/Users/xo/code/agendash/frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:110:12)
    at /Users/xo/code/agendash/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] (/Users/xo/code/agendash/frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-consumer.js:157:14)
    at Function.SourceMapGenerator_fromSourceMap [as fromSourceMap] (/Users/xo/code/agendash/frontend/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:48:24)
    at SourceMapSource.node (/Users/xo/code/agendash/frontend/node_modules/webpack-sources/lib/SourceMapSource.js:32:35)
    at SourceMapSource.proto.sourceAndMap (/Users/xo/code/agendash/frontend/node_modules/webpack-sources/lib/SourceAndMapMixin.js:30:18)
    at getTaskForFile (/Users/xo/.config/yarn/global/node_modules/webpack/lib/SourceMapDevToolPlugin.js:33:30)
    at chunk.files.forEach.file (/Users/xo/.config/yarn/global/node_modules/webpack/lib/SourceMapDevToolPlugin.js:91:21)
    at Array.forEach (<anonymous>)
    at /Users/xo/.config/yarn/global/node_modules/webpack/lib/SourceMapDevToolPlugin.js:89:18
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (/Users/xo/.config/yarn/global/node_modules/webpack/lib/SourceMapDevToolPlugin.js:88:12)
    at Compilation.applyPlugins1 (/Users/xo/.config/yarn/global/node_modules/tapable/lib/Tapable.js:75:14)
    at self.applyPluginsAsync.err (/Users/xo/.config/yarn/global/node_modules/webpack/lib/Compilation.js:670:11)
    at next (/Users/xo/.config/yarn/global/node_modules/tapable/lib/Tapable.js:202:11)
    at Compilation.<anonymous> (/Users/xo/code/agendash/frontend/node_modules/babel-minify-webpack-plugin/dist/index.js:119:11)
    at next (/Users/xo/.config/yarn/global/node_modules/tapable/lib/Tapable.js:204:14)
    at Compilation.compilation.plugin (/Users/xo/.config/yarn/global/node_modules/webpack/lib/ProgressPlugin.js:119:6)
    at Compilation.applyPluginsAsyncSeries (/Users/xo/.config/yarn/global/node_modules/tapable/lib/Tapable.js:206:13)
    at self.applyPluginsAsync.err (/Users/xo/.config/yarn/global/node_modules/webpack/lib/Compilation.js:666:10)
@github-actions
Copy link

github-actions bot commented May 1, 2020

This issue has been marked as Stale, it will be closed in a week if there's no furthur activity.

@github-actions github-actions bot added the stale label May 1, 2020
@github-actions github-actions bot closed this as completed May 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant