petehunt / webpack-howto

10.12k stars 697 forks source link

Module build failed: ReferenceError: [BABEL] webpack-howto/example/modules/main.js: Unknown option: direct.presets #99

Open wolfch opened 6 years ago

wolfch commented 6 years ago

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)