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
Why Does Script Not Recognize File Extension
How to Run Multiple Programs in a Sequence
Why Would the Elf Header of a Shared Library Specify Linux as the Osabi
Measuring Stack Usage for Linux Multi-Threaded App
How to Inform Gcc to Not Use a Particular Register
How to Properly Quote This Bash Pipeline for Watch
Can Libpcap Reassemble Tcp Segments
How to Increase Openfabrics Memory Limit for Torque Jobs
Arm: Disabling Mmu and Updating Pc
Bash Shell: Cannot Use Variable $ as a Path to Run Tar
How to Make My Makefiles Better
Shell Script: Hexadecimal Loop
How to Show Dialog Gauge for Wget
Linux Command Ambiguous Redirect
Command Substitution Doesn't Work in Script Text Passed Over Ssh