I am new to vuejs and found a wordpress boilerplate theme to start working off of, however I am unable to get things working correctly.
I am trying to include bootstrap-vue into the theme but I am receiving the following error when running 'npm run dev or build or watch' ---
ERROR in ./node_modules/bootstrap/dist/css/bootstrap.css
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/lib/index.js):
TypeError: Cannot read property 'charCodeAt' of undefined
at module.exports (/var/www/html/wp-content/themes/vuejs-wordpress-theme-starter-master/node_modules/postcss-value-parser/lib/parse.js:17:22)
at new ValueParser (/var/www/html/wp-content/themes/vuejs-wordpress-theme-starter-master/node_modules/postcss-value-parser/lib/index.js:7:22)
This is my second server and 4th attempt at trying to use bootstrap with the theme.
So far these are all my steps for creating a new server and trying to use the theme plus bootstrap ---
> - Create server on Digital Ocean using wordpress marketplace image
> setup.
> - Set domain to server on DO
> - Log in SSH and run setup script.
> - Wait for propagation.
> - Then do this - https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04
> - Change http to https in dashboard.
> - Copied vue theme over to directory using SFTP.
> - Install NPM with --- apt install npm
> - CD into theme directory and run npm install
> - Then run - npm run watch or npm run dev
> - install node run --- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
> - then run -- sudo apt-get install -y nodejs
> - cd into directory then npm install --save-dev cross-env
> - then - npm audit fix
> - then - npm install --save-dev [email protected]
> - then - npm install --save-dev [email protected]
> - then delete package.loc
> - then - run npm install babel-preset-stage-2 --save-dev
> - then - run npm install --dev
> postcss-loader
> postcss-import
> postcss-cssnext
> cssnano
> sugarss
> autoprefixer --save-dev
> - then run install vue-loader (look up command)
> - comment out webconfig - minimize true
> - then run npm install --save-dev css-loader sass-loader node-sass extract-loader file-loader
> - copied previous webconfig file
> - navigate to folder then run npm install bootstrap
> - add import in app.js -
> - import 'bootstrap/dist/css/bootstrap.css'
> - import 'bootstrap-vue/dist/bootstrap-vue.css'
> - before initating vue, add -- Vue.use(BootstrapVue)`
- then run - npm install vue --save
- npm install vue
- npm install vue-template-compiler
What am I doing wrong?