Мое решение
Среда - Ubuntu 18.04, PHP 7, symfony 4.x
Использовал npm для установки пакетов, пока все не запустится.Начинается с веб-пакета 3.5.6
Команды
rm -rf node_modules
npm cache clean --force
yarn cache clean
npm install webpack@3.5.6
npm install @symfony/webpack-encore --save-dev
npm i vue vue-template-compiler vue-template vue-loader
npm i babel-loader
npm i @babel/core --save-dev
npm i bootstrap-vue
npm i extract-text-webpack-plugin
npm i bootstrap
npm install --save
package.json
{
"devDependencies": {
"@babel/core": "^7.1.2",
"@symfony/webpack-encore": "^0.17.1",
"css-loader": "^1.0.0",
"html-webpack-plugin": "^3.2.0",
"style-loader": "^0.23.1",
"vue": "^2.5.17",
"vue-loader": "^14.2.3",
"vue-template-compiler": "^2.5.17"
},
"license": "UNLICENSED",
"private": true,
"scripts": {
"dev-server": "encore dev-server",
"dev": "encore dev",
"watch": "encore dev --watch",
"build": "encore production"
},
"dependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^8.0.4",
"bootstrap": "^4.1.3",
"bootstrap-vue": "^2.0.0-rc.11",
"clean-self-webpack-plugin": "^2.0.3",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^2.0.0",
"uglifyjs-webpack-plugin": "^2.0.1",
"vue-template": "^1.0.3",
"webpack": "^3.5.6",
"webpack-cli": "^3.1.2"
}
}