E
E
Enickckey2022-03-01 12:18:27
webpack
Enickckey, 2022-03-01 12:18:27

How to fix webpack Error: Unknown option '--inline'?

Hello.
I am trying to install this library. https://vue-formbuilder.netlify.app/
Since the packages there are outdated, I updated them to the latest except for vue.
When starting the project, it gives the following error.

> [email protected] dev
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js "production"

[webpack-cli] Error: Unknown option '--inline'
[webpack-cli] Run 'webpack --help' to see available commands and options


Here is my package
{
  "name": "project",
  "version": "1.0.0",
  "description": "A Vue.js project",
  "author": "Jia Meei <[email protected]>",
  "private": true,
  "scripts": {
    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
    "start": "npm run dev",
    "unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
    "test": "npm run unit",
    "build": "node build/build.js"
  },
  "dependencies": {
    "element-ui": "^2.15.6",
    "medium-editor": "^5.23.3",
    "vue": "^2.5.2",
    "vue-lodash": "^2.0.0",
    "vue-router": "^3.0.1",
    "vue-stash": "^2.0.1-beta",
    "vue2-animate": "^2.1.4",
    "vue2-medium-editor": "^1.1.6",
    "vuedraggable": "^2.24.3"
  },
  "devDependencies": {
    "autoprefixer": "^10.4.2",
    "babel-core": "^6.26.3",
    "babel-helper-vue-jsx-merge-props": "^2.0.3",
    "babel-loader": "^8.2.3",
    "babel-plugin-istanbul": "^6.1.1",
    "babel-plugin-syntax-jsx": "^6.18.0",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-plugin-transform-vue-jsx": "^3.7.0",
    "babel-preset-env": "^1.7.0",
    "babel-preset-stage-2": "^6.24.1",
    "chai": "^4.3.6",
    "chalk": "^5.0.0",
    "copy-webpack-plugin": "^10.2.4",
    "cross-env": "^7.0.3",
    "css-loader": "^6.6.0",
    "extract-text-webpack-plugin": "^3.0.0",
    "file-loader": "^6.2.0",
    "friendly-errors-webpack-plugin": "^1.7.0",
    "html-webpack-plugin": "^5.5.0",
    "inject-loader": "^4.0.1",
    "karma": "^6.3.17",
    "karma-coverage": "^2.2.0",
    "karma-mocha": "^2.0.1",
    "karma-phantomjs-launcher": "^1.0.4",
    "karma-phantomjs-shim": "^1.5.0",
    "karma-sinon-chai": "^2.0.2",
    "karma-sourcemap-loader": "^0.3.8",
    "karma-spec-reporter": "0.0.33",
    "karma-webpack": "^5.0.0",
    "mocha": "^9.2.1",
    "node-notifier": "^10.0.1",
    "node-sass": "^7.0.1",
    "optimize-css-assets-webpack-plugin": "^6.0.1",
    "ora": "^6.1.0",
    "phantomjs-prebuilt": "^2.1.14",
    "portfinder": "^1.0.28",
    "postcss-import": "^14.0.2",
    "postcss-loader": "^6.2.1",
    "postcss-url": "^10.1.3",
    "rimraf": "^3.0.2",
    "sass-loader": "^12.6.0",
    "semver": "^7.3.5",
    "shelljs": "^0.8.5",
    "sinon": "^13.0.1",
    "sinon-chai": "^3.7.0",
    "style-loader": "^3.3.1",
    "uglifyjs-webpack-plugin": "^2.2.0",
    "url-loader": "^4.1.1",
    "vue-loader": "^17.0.0",
    "vue-style-loader": "^4.1.3",
    "vue-template-compiler": "^2.6.14",
    "webpack": "^5.69.1",
    "webpack-bundle-analyzer": "^4.5.0",
    "webpack-cli": "^4.9.2",
    "webpack-dev-server": "^4.7.4",
    "webpack-merge": "^5.8.0"
  },
  "engines": {
    "node": ">= 6.0.0",
    "npm": ">= 3.0.0"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 8"
  ]
}

How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Shipin, 2022-03-01
@alexshipin

Enickckey , recent versions no longer contain inline options
list in launch options

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question