我正在尝试使用 lerna monorepo 在 Netlify 上部署我的项目,但它因错误消息而失败:-
11:38:06 AM: Build ready to start
11:38:10 AM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302
11:38:10 AM: build-image tag: v3.7.6
11:38:10 AM: buildbot version: 3934dc3e65fec0466cd25051c676f6e727c64ab1
11:38:10 AM: Fetching cached dependencies
11:38:11 AM: Failed to fetch cache, continuing with build
11:38:11 AM: Starting to prepare the repo for build
11:38:11 AM: No cached dependencies found. Cloning fresh repo
11:38:11 AM: git clone https://github.com/kunalkumar007/react-projects
11:38:12 AM: Preparing Git Reference refs/heads/main
11:38:12 AM: Error checking out submodules: fatal: No url found for submodule path 'packages/MarioPlan' in
.gitmodules
11:38:12 AM: Creating deploy upload records
11:38:12 AM: Failing build: Failed to prepare repo
11:38:12 AM: Failed during stage 'preparing repo': Error checking out submodules: fatal: No url found for
submodule path 'packages/MarioPlan' in .gitmodules: exit status 128
11:38:12 AM: Finished processing build request in 2.099046599s
我的 Github 存储库链接是 https://github.com/kunalkumar007/react-projects
Package.json:-
{
"name": "root",
"private": true,
"scripts": {
"bootstrap": "lerna bootstrap --hoist",
"clean": "lerna clean -y",
"build:MarioPlan": "lerna run build --scope=MarioPlan",
"buildCybuzz":"lerna run build --scope=Cybuzz",
"start":"lerna run start"
},
"devDependencies": {
"lerna": "^4.0.0"
}
}
Lerna.json:-
{
"packages": [
"packages/*"
],
"version": "independent"
}