0

Error message screencapture

Good morning,

I am installing Boostrap v 5.3.3 in Symfony following the Bootstrap documentation. But I encounter an error when launching the "npm start" command (just after modifying the 'package.json' file with the script provided by the doc on this link: https://getbootstrap.com/docs/5.3/getting-started/webpack/#import-bootstrap).

I have the:

start webpack serve

Which is displayed, but which is followed by the error message: "[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.

  • options has an unknown property '_assetEmittingPreviousFiles'. These properties are valid: object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, ipc?, liveReload?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }"

Can you help me get out of this blockage please?

thank you

I haven't done anything, I prefer to wait for your suggestions before breaking everything


My "package.json" content

Screencapture of package.json

0

1 Answer 1

0

I found the solution and share it with you, maybe it will be useful to someone else.

The problem was with the content of the "webpack.conf.js" and "package.json" files.

You will find the contents of these two files which worked for me.

Fchier webpack.config.js

Fichier package.json

Enjoy !

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.