https://github.com/ofhouse/stackoverflow-65355772
Please see: https://github.com/webpack-contrib/css-minimizer-webpack-plugin/issues/51
https://github.com/ofhouse/stackoverflow-65355772
Last synced: about 1 month ago
JSON representation
Please see: https://github.com/webpack-contrib/css-minimizer-webpack-plugin/issues/51
- Host: GitHub
- URL: https://github.com/ofhouse/stackoverflow-65355772
- Owner: ofhouse
- Created: 2021-01-05T19:05:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-09T12:25:44.000Z (over 4 years ago)
- Last Synced: 2025-02-28T05:21:02.406Z (2 months ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# css-minimizer-webpack-plugin SourceMap Bug
This is a minimal reproduction repo for a bug that only happens on GitLab CI.
While running `npm run build` on GitLab CI, it produces the following error message:
```
(node:40) UnhandledPromiseRejectionWarning: Error: "version" is a required argument.
at Object.getArg (/builds/ofhouse/stackoverflow-65355772/node_modules/source-map/lib/util.js:24:11)
at new BasicSourceMapConsumer (/builds/ofhouse/stackoverflow-65355772/node_modules/source-map/lib/source-map-consumer.js:294:22)
at new SourceMapConsumer (/builds/ofhouse/stackoverflow-65355772/node_modules/source-map/lib/source-map-consumer.js:22:7)
at SourceMapSource.node (/builds/ofhouse/stackoverflow-65355772/node_modules/webpack-sources/lib/SourceMapSource.js:193:4)
at exports.getSourceAndMap (/builds/ofhouse/stackoverflow-65355772/node_modules/webpack-sources/lib/helpers.js:20:27)
at SourceMapSource.sourceAndMap (/builds/ofhouse/stackoverflow-65355772/node_modules/webpack-sources/lib/SourceMapSource.js:184:10)
at getTaskForFile (/builds/ofhouse/stackoverflow-65355772/node_modules/webpack/lib/SourceMapDevToolPlugin.js:78:30)
at /builds/ofhouse/stackoverflow-65355772/node_modules/webpack/lib/SourceMapDevToolPlugin.js:266:22
at /builds/ofhouse/stackoverflow-65355772/node_modules/webpack/lib/Cache.js:93:5
at Hook.eval [as callAsync] (eval at create (/builds/ofhouse/stackoverflow-65355772/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
```You can see the behavior in the CI build output from this repository.
However, it runs successfully on a local machine (Tested with MacOS and Ubuntu).