> react-webpack1@0.0.1 test /Users/micahsmith/dev/react-webpack1
> karma start
02 11 2016 16:01:23.188:ERROR [preprocess]: Can not load "webpack"!
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration has an unknown property 'debug'. These properties are valid:
object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
The 'debug' property was removed in webpack 2.
Loaders should be updated to allow passing this option via loader options in module.rules.
Until loaders are updated one can use the LoaderOptionsPlugin to switch loaders into debug mode:
plugins: {
new webpack.LoaderOptionsPlugin({
debug: true
})
}
- configuration.module has an unknown property 'preLoaders'. These properties are valid:
object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, loaders?, noParse?, rules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }
Options affecting the normal modules (`NormalModuleFactory`).
- configuration.resolve.extensions[0] should not be empty.
at webpack (/Users/micahsmith/dev/react-webpack1/node_modules/webpack/lib/webpack.js:16:9)
at new Plugin (/Users/micahsmith/dev/react-webpack1/node_modules/karma-webpack/lib/karma-webpack.js:63:18)
at invoke (/Users/micahsmith/dev/react-webpack1/node_modules/di/lib/injector.js:75:15)
at Array.instantiate (/Users/micahsmith/dev/react-webpack1/node_modules/di/lib/injector.js:59:20)
at get (/Users/micahsmith/dev/react-webpack1/node_modules/di/lib/injector.js:48:43)
at /Users/micahsmith/dev/react-webpack1/node_modules/di/lib/injector.js:71:14
at Array.map (native)
at Array.invoke (/Users/micahsmith/dev/react-webpack1/node_modules/di/lib/injector.js:70:31)
at get (/Users/micahsmith/dev/react-webpack1/node_modules/di/lib/injector.js:48:43)
at instantiatePreprocessor (/Users/micahsmith/dev/react-webpack1/node_modules/karma/lib/preprocessor.js:55:20)
at Array.forEach (native)
at createPreprocessor (/Users/micahsmith/dev/react-webpack1/node_modules/karma/lib/preprocessor.js:74:20)
at Array.invoke (/Users/micahsmith/dev/react-webpack1/node_modules/di/lib/injector.js:75:15)
at get (/Users/micahsmith/dev/react-webpack1/node_modules/di/lib/injector.js:48:43)
at /Users/micahsmith/dev/react-webpack1/node_modules/di/lib/injector.js:71:14
at Array.map (native)
START:
02 11 2016 16:01:23.323:INFO [karma]: Karma v1.3.0 server started at http://localhost:8080/
02 11 2016 16:01:23.324:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
02 11 2016 16:01:23.325:ERROR [karma]: Found 1 load error
> react-webpack1@0.0.1 posttest /Users/micahsmith/dev/react-webpack1
> npm run lint
> react-webpack1@0.0.1 lint /Users/micahsmith/dev/react-webpack1
> eslint ./src
Here's what happens when i run
npm start
:my package.json is: