Webpack Build Fails with Gitlab-Ci

Webpack build fails with Gitlab-CI

I solved this issue by changing the babel-loader configuration from

rules: [
{
test: /\.js$/,
include: path.resolve(__dirname, 'src'),
exclude: /(node_modules|bower_components|build)/,
use: {
loader: 'babel-loader',
options: {
presets: ['env']
}
}
},
...
]

to

rules: [
{
test: /\.js$/,
include: path.resolve(__dirname, 'src'),
exclude: '/node_modules/',
use: {
loader: 'babel-loader',
options: {
presets: ['env']
}
}
},
...
]

https://github.com/babel/babel-loader/issues/370#issuecomment-310378407

Gitlab-CI: Nodejs application fails to build

I was able to solve my problem by adding

CI=false && react-scripts build to my package.json

  "scripts": {
"start": "react-scripts start",
"build": "CI=false && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},

Building Vue.js project in Gitlab CI/CD pipeline failed

Which MDB Vue version are you using? In MDB Vue 6.0.0 (the most recent version) main.js imports in main.js have changed to:

import 'mdbvue/lib/css/mdb.min.css';
import Notify from 'mdbvue/lib/components/Notify'

If your scripts installed dependencies from the gitlab master branch directly, it is possible that the version differs and those files are no longer there. You can try linking mdbvue dependency to .tgz file to make sure it stays the same.

"mdbvue": "mdbvue-[YOUR_VERSION].tgz"


Related Topics



Leave a reply



Submit