slate icon indicating copy to clipboard operation
slate copied to clipboard

Yarn deploy builds, but doesn't deploy

Open dungle-scrubs opened this issue 6 years ago • 4 comments

Problem

When I type yarn deploy, slate-tools build will successfully run, but I no longer receive the option to upload. Instead, I have to run yarn slate-tools deploy separately.

Cheers

dungle-scrubs avatar Feb 25 '19 08:02 dungle-scrubs

@kevmon How does your package.json look like? the scripts part should be

"scripts": { "start": "slate-tools start", "watch": "slate-tools start --skipFirstDeploy", "build": "slate-tools build", "deploy": "slate-tools build && slate-tools deploy", "zip": "slate-tools build && slate-tools zip", "lint": "slate-tools lint", "format": "slate-tools format" }

victorjanin avatar Mar 30 '19 07:03 victorjanin

@peke314

Thanks, it looks exactly like that. I have two projects that are duplicates, it works for one but not the other. I'm not sure how to troubleshoot further.

dungle-scrubs avatar Mar 30 '19 07:03 dungle-scrubs

Update: It was a plugin that was causing this issue - called BundleAnalyzerPlugin - when extending webpack in slate.config.js.

dungle-scrubs avatar Apr 17 '19 08:04 dungle-scrubs

@dungle-scrubs - This helped me, thanks.

nboliver avatar Jul 31 '19 22:07 nboliver