我试图将我的项目从webpack 1.x迁移到webpack 2.x.我升级了所有的加载器,并确保配置正确传递。但是,我得到了以下错误,它抱怨babel-loader不是装载机,并且想知道是否有人有任何指针,非常感谢!
/Users/satkumar/Dev/gd-webapp-dev/node_modules/loader-runner/lib/loadLoader.js:30
throw new Error("Module '" + loader.path + "' is not a loader (export function or es6 module))");
^
Error: Module '/Users/satkumar/Dev/onboarding/node_modules/babel-loader/index.js' is not a loader (export function or es6 module))
at loadLoader (/Users/satkumar/Dev/gd-webapp-dev/node_modules/loader-runner/lib/loadLoader.js:30:10)
at iteratePitchingLoaders (/Users/satkumar/Dev/gd-webapp-dev/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at runLoaders (/Users/satkumar/Dev/gd-webapp-dev/node_modules/loader-runner/lib/LoaderRunner.js:362:2)
at NormalModule.doBuild (/Users/satkumar/Dev/gd-webapp-dev/node_modules/webpack/lib/NormalModule.js:179:3)
at NormalModule.build (/Users/satkumar/Dev/gd-webapp-dev/node_modules/webpack/lib/NormalModule.js:268:15)
at Compilation.buildModule (/Users/satkumar/Dev/gd-webapp-dev/node_modules/webpack/lib/Compilation.js:146:10)
at moduleFactory.create (/Users/satkumar/Dev/gd-webapp-dev/node_modules/webpack/lib/Compilation.js:433:9)
at factory (/Users/satkumar/Dev/gd-webapp-dev/node_modules/webpack/lib/NormalModuleFactory.js:253:5)
at applyPluginsAsyncWaterfall (/Users/satkumar/Dev/gd-webapp-dev/node_modules/webpack/lib/NormalModuleFactory.js:99:14)
at /Users/satkumar/Dev/gd-webapp-dev/node_modules/tapable/lib/Tapable.js:204:11
at NormalModuleFactory.params.normalModuleFactory.plugin (/Users/satkumar/Dev/gd-webapp-dev/node_modules/webpack/lib/CompatibilityPlugin.js:52:5)
at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/satkumar/Dev/gd-webapp-dev/node_modules/tapable/lib/Tapable.js:208:13)
at resolver (/Users/satkumar/Dev/gd-webapp-dev/node_modules/webpack/lib/NormalModuleFactory.js:74:11)
at process.nextTick (/Users/satkumar/Dev/gd-webapp-dev/node_modules/webpack/lib/NormalModuleFactory.js:205:8)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)