question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

configuration has an unknown property 'outputPath'

See original GitHub issue

webpack-dev-server is telling me:

Invalid configuration object. webpack-dev-server has been initialised using a configuration object that does not match the API schema.
 - configuration has an unknown property 'outputPath'. These properties are valid:
   object { hot?, hotOnly?, lazy?, host?, filename?, publicPath?, port?, socket?, watchOptions?, headers?, clientLogLevel?, key?, cert?, ca?, pfx?, pfxPassphrase?, inline?, public?, https?, contentBase?, watchContentBase?, open?, features?, compress?, proxy?, historyApiF
allback?, staticOptions?, setup?, stats?, reporter?, noInfo?, quiet?, serverSideRender?, index?, log?, warn? }

webpack works fine and generates everything well.

These are my config files:

webpack and webpack-dev-server version: webpack: 1.10.x/2.x webpack-dev-server: 1.x/2.x

Please tell us about your environment: Windows 10

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
SpaceK33zcommented, Nov 17, 2016

outputPath isn’t a valid option in webpack-dev-server, it doesn’t do anything. So you can remove outputPath in the devServer object.

0reactions
shellscapecommented, Sep 29, 2017

@stevematdavies please try Stack Overflow or the webpack Gitter for support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dev Server has been initialized using an options object that ...
Dev Server has been initialized using an options object that does not match the API schema. options has an unknown property 'publicPath'. These ......
Read more >
[Solved] Getting Set Up not running - Questions - Babylon.js
Dev Server has been initialized using an options object that does not match the API schema. - options has an unknown property 'publicPath'....
Read more >
Public Path - webpack
The publicPath configuration option can be quite useful in a variety of scenarios. It allows you to specify the base path for all...
Read more >
[webpack-cli] invalid options object. dev server has ... - You.com
- options has an unknown property 'hotOnly'. These properties are valid: Solution: devServer|Webpack config is related to webpack-dev-server. This migration ...
Read more >
Webpack has been initialized using a configuration object
configuration.module.rules[10] has an unknown property 'loaders'. These properties are valid: object { compiler?, dependency?, descriptionData?, enforce?, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found