Module build failed: ReferenceError: [BABEL] webpack-howto/example/modules/main.js: Unknown option: direct.presets
Author: wolfchCreated Feb 17, 2018Updated Feb 17, 2018
I was hoping this howto would help an absolute beginner, but it seems to be dead-on-arrival. Any ideas?
ERROR in ./modules/main.js
Module build failed: ReferenceError: [BABEL] /Users/wolfch/src/webpack-howto/example/modules/main.js: Unknown option: direct.presets
at Logger.error (/Users/wolfch/src/webpack-howto/example/node_modules/babel-core/lib/transformation/file/logger.js:58:11)
at OptionManager.mergeOptions (/Users/wolfch/src/webpack-howto/example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:29)
at OptionManager.init (/Users/wolfch/src/webpack-howto/example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:216:10)
at File.initOptions (/Users/wolfch/src/webpack-howto/example/node_modules/babel-core/lib/transformation/file/index.js:147:75)
at new File (/Users/wolfch/src/webpack-howto/example/node_modules/babel-core/lib/transformation/file/index.js:137:22)
at Pipeline.transform (/Users/wolfch/src/webpack-howto/example/node_modules/babel-core/lib/transformation/pipeline.js:164:16)
at transpile (/Users/wolfch/src/webpack-howto/example/node_modules/babel-loader/index.js:12:22)
at Object.module.exports (/Users/wolfch/src/webpack-howto/example/node_modules/babel-loader/index.js:71:12)Source: petehunt/webpack-howto