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.

Invalid configuration object

See original GitHub issue

Using master, this:

mix.js('resources/assets/js/web.js', 'public/js')
   .js('resources/assets/js/app.js', 'public/js');

Results in:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.entry['app'] should be one of these:
   string | [string]
   The entry point for one output file.
 - configuration.entry should be one of these:
   object { <key>: string | [string] } | string | [string]
   The entry point(s) of the compilation.

Is there something I’m doing wrong? Totally new to Webpack.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
jasonspickcommented, Apr 18, 2017

run:npm uninstall laravel-mix && npm install --save laravel-mix

I had an issue where it wouldn’t just update.

2reactions
JeffreyWaycommented, Dec 27, 2016

@tillkruss - Have you updated your webpack.config.js file to the latest version? I’d bet that’s the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid configuration object. Webpack has been initialised ...
This error usually happens when you have conflicting version (angular js). So the webpack could not start the application. You can simply fix...
Read more >
Invalid configuration object. Webpack has been ... - GitHub
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. #914.
Read more >
Webpack has been initialized using a configuration object
Webpack has been initialized using a configuration object. I just install a new laravel ... [webpack-cli] Invalid configuration object. Webpack has been ...
Read more >
invalid configuration object. webpack has been initialized ...
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. Invalid configuration object.
Read more >
Invalid configuration object. Webpack has been ... - Reddit
Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
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