Production build fails with "error: "version" is a required argument."
See original GitHub issueDescription
building for production fails
Expected behavior
building for production should finish
Actual behavior
After runing production build I get
18:30:29 - error: "version" is a required argument.
at Object.getArg (/Users/uros/Sites/wandera/node_modules/source-map/lib/util.js:24:11)
at SourceMapConsumer.BasicSourceMapConsumer (/Users/uros/Sites/wandera/node_modules/source-map/lib/source-map-consumer.js:288:22)
at new SourceMapConsumer (/Users/uros/Sites/wandera/node_modules/source-map/lib/source-map-consumer.js:22:7)
at prepareSourceMap (/Users/uros/Sites/wandera/node_modules/brunch/lib/fs_utils/generate.js:130:48)
at processJob.then.optimized (/Users/uros/Sites/wandera/node_modules/brunch/lib/fs_utils/generate.js:151:17)
at process._tickCallback (internal/process/next_tick.js:103:7)
Environment
- Brunch: 2.10.8
- Node.js: v6.7.0
- NPM: 3.10.3
- Operating system: osx
package.json
contents
"devDependencies": {
"autoprefixer": "^6.7.3",
"brunch": "^2",
"coffee-script-brunch": "^2",
"coffeelint-brunch": "^2",
"digest-brunch": "^1.4.0",
"git-revision": "*",
"groundskeeper-brunch": "0.0.4",
"handlebars-brunch": "^2",
"karma": "~0.13",
"karma-chrome-launcher": "~0.1",
"karma-coffee-preprocessor": "~0.2",
"karma-coverage": "~1.1",
"karma-firefox-launcher": "~0.1",
"karma-junit-reporter": "~1.1",
"karma-mocha": "~1.2",
"karma-mocha-reporter": "~2.2",
"karma-phantomjs-launcher": "~1.0",
"karma-safari-launcher": "~0.1",
"keyword-brunch": "^2",
"mocha": "~3.1",
"phantomjs-prebuilt": "~2.1",
"postcss-brunch": "0.5",
"sass-brunch": "^2",
"uglify-js-brunch": "^2"
},
Other useful files, when present (log, bower.json
etc.)
Latest version I used was 2.8.x and no errors with the same codebase and configuration
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Error: "version" is a required argument · Issue #12229
I think I figured it out, the build process was crashing due to OOM errors and I'm assuming the source maps were being...
Read more >How to fix the webpack error "version" is a required ...
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not...
Read more >Error: "version" is a required argument
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... [ ...
Read more >To v5 from v4
Make sure your build has no errors or warnings. There might be new errors or warnings because of the upgraded versions of webpack...
Read more >Common errors
Errors · Broken npm installation · Random errors · No compatible version found · Permissions errors · Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm' on ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try https://babeljs.io/docs/plugins/transform-remove-console.
groundskeeper
is so 2013.@urosgruber babel-brunch with
transform-remove-console
plugin would be much more better solution: