Just had my builds start failing due to “Deploy did not succeed: Deploy directory ‘dist’ does not exist”. This started happening ~10 mins ago on 2 different projects, so unless I really messed something up I think this might be on Netlify’s end. They both have a custom base & publish directory, since they use the same monorepo.
Relevant build logs from one of them:
1:48:54 PM: ────────────────────────────────────────────────────────────────
1:48:54 PM: 1. Build command from Netlify app
1:48:54 PM: ────────────────────────────────────────────────────────────────
1:48:54 PM:
1:48:54 PM: $ yarn build
1:48:54 PM: yarn run v1.22.4
1:48:54 PM: $ cross-env NODE_ENV=production webpack
1:48:55 PM: Building commit d2728ee79bae40c47a9bff6838c6a3eecf3296f5
1:48:55 PM: Building commit d2728ee79bae40c47a9bff6838c6a3eecf3296f5
1:49:16 PM: (node:1753) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /opt/build/repo/widget/node_modules/css-loader/node_modules/postcss/package.json.
1:49:16 PM: Update this package.json to use a subpath pattern like "./*".
1:49:16 PM: (Use `node --trace-deprecation ...` to show where the warning was created)
1:49:44 PM: Webpack Bundle Analyzer saved report to /opt/build/repo/widget/dist/bundle-analysis.html
1:49:47 PM: Webpack Bundle Analyzer saved report to /opt/build/repo/widget/dist/bundle-analysis.debug.html
1:49:47 PM: Hash: ec7b78c2404dcae2bdcd80f6de0c9b14ddde0d05
1:49:47 PM: Version: webpack 4.44.1
1:49:47 PM: Child
1:49:47 PM: Hash: ec7b78c2404dcae2bdcd
1:49:47 PM: Time: 46004ms
1:49:47 PM: Built at: 07/15/2021 6:49:43 PM
1:49:47 PM: Asset Size Chunks Chunk Names
1:49:47 PM: assets/DMSans-Bold.da49214b.ttf 70.1 KiB [emitted] [immutable]
1:49:47 PM: assets/DMSans-Medium.f4583469.ttf 70 KiB [emitted] [immutable]
1:49:47 PM: assets/DMSans-Regular.067ebd7e.ttf 70.2 KiB [emitted] [immutable]
1:49:47 PM: assets/info-panel-widget-large.364a18b7.png 22.3 KiB [emitted] [immutable]
1:49:47 PM: assets/info-panel-widget-small.08b0876c.png 15.4 KiB [emitted] [immutable]
1:49:47 PM: main.js 586 KiB 0 [emitted] [big] main
1:49:47 PM: Entrypoint main [big] = main.js
1:49:47 PM: [0] ./node_modules/@babel/runtime/regenerator/index.js 49 bytes {0} [built]
1:49:47 PM: [3] ./node_modules/@babel/runtime/helpers/slicedToArray.js 522 bytes {0} [built]
1:49:47 PM: [4] ./node_modules/detectrtc/DetectRTC.js 40.5 KiB {0} [built]
1:49:47 PM: [14] ./node_modules/@babel/runtime/helpers/typeof.js 723 bytes {0} [built]
1:49:47 PM: [18] ./node_modules/@babel/runtime/helpers/toConsumableArray.js 521 bytes {0} [built]
1:49:47 PM: [19] ./node_modules/@babel/runtime/helpers/defineProperty.js 367 bytes {0} [built]
1:49:47 PM: [29] ./node_modules/recaptcha-v3/dist/ReCaptcha.js 348 bytes {0} [built]
1:49:47 PM: [67] ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js 609 bytes {0} [built]
1:49:47 PM: [109] ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js 266 bytes {0} [built]
1:49:47 PM: [110] ./node_modules/@babel/runtime/helpers/iterableToArray.js 246 bytes {0} [built]
1:49:47 PM: [111] ./node_modules/@babel/runtime/helpers/nonIterableSpread.js 308 bytes {0} [built]
1:49:47 PM: [112] ./node_modules/@babel/runtime/helpers/arrayWithHoles.js 184 bytes {0} [built]
1:49:47 PM: [113] ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js 683 bytes {0} [built]
1:49:47 PM: [114] ./node_modules/@babel/runtime/helpers/nonIterableRest.js 309 bytes {0} [built]
1:49:47 PM: [173] ./src/embed.ts + 210 modules 947 KiB {0} [built]
1:49:47 PM: | ./src/embed.ts 864 bytes [built]
1:49:47 PM: | ./src/index.ts 14.1 KiB [built]
1:49:47 PM: | ./node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js 49.6 KiB [built]
1:49:47 PM: | ./src/app/types/index.ts 744 bytes [built]
1:49:47 PM: | ./src/app/utils/index.ts 9.52 KiB [built]
1:49:47 PM: | ./src/app/log.ts 3.95 KiB [built]
1:49:47 PM: | ./src/app/user-agent.ts 3.82 KiB [built]
1:49:47 PM: | ./src/utils/options.ts 8.47 KiB [built]
1:49:47 PM: | ./src/app/rrweb.ts 3.54 KiB [built]
1:49:47 PM: | ./src/app/utils/call-query.ts 4.48 KiB [built]
1:49:47 PM: | ./src/app/realtime.ts 46 KiB [built]
1:49:47 PM: | ./src/app/slices.ts 29.8 KiB [built]
1:49:47 PM: | ./src/app/store.ts 808 bytes [built]
1:49:47 PM: | ./src/app/index.tsx 8.2 KiB [built]
1:49:47 PM: | ./src/utils/intercom.ts 2.45 KiB [built]
1:49:47 PM: | + 196 hidden modules
1:49:47 PM: + 172 hidden modules
1:49:47 PM: Child
1:49:47 PM: Hash: 80f6de0c9b14ddde0d05
1:49:47 PM: Time: 49842ms
1:49:47 PM: Built at: 07/15/2021 6:49:47 PM
1:49:47 PM: Asset Size Chunks Chunk Names
1:49:47 PM: assets/DMSans-Bold.da49214b.ttf 70.1 KiB [emitted] [immutable]
1:49:47 PM: assets/DMSans-Medium.f4583469.ttf 70 KiB [emitted] [immutable]
1:49:47 PM: assets/DMSans-Regular.067ebd7e.ttf 70.2 KiB [emitted] [immutable]
1:49:47 PM: assets/info-panel-widget-large.364a18b7.png 22.3 KiB [emitted] [immutable]
1:49:47 PM: assets/info-panel-widget-small.08b0876c.png 15.4 KiB [emitted] [immutable]
1:49:47 PM: main.debug.js 679 KiB 0 [emitted] [big] main
1:49:47 PM: main.debug.js.map 2.16 MiB 0 [emitted] [dev] main
1:49:47 PM: Entrypoint main [big] = main.debug.js main.debug.js.map
1:49:47 PM: [0] ./node_modules/@babel/runtime/regenerator/index.js 49 bytes {0} [built]
1:49:47 PM: [4] ./node_modules/@babel/runtime/helpers/slicedToArray.js 522 bytes {0} [built]
1:49:47 PM: [5] ./node_modules/detectrtc/DetectRTC.js 40.5 KiB {0} [built]
1:49:47 PM: [15] ./node_modules/@babel/runtime/helpers/typeof.js 723 bytes {0} [built]
1:49:47 PM: [19] ./node_modules/@babel/runtime/helpers/toConsumableArray.js 521 bytes {0} [built]
1:49:47 PM: [20] ./node_modules/@babel/runtime/helpers/defineProperty.js 367 bytes {0} [built]
1:49:47 PM: [30] ./node_modules/recaptcha-v3/dist/ReCaptcha.js 348 bytes {0} [built]
1:49:47 PM: [68] ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js 609 bytes {0} [built]
1:49:47 PM: [110] ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js 266 bytes {0} [built]
1:49:47 PM: [111] ./node_modules/@babel/runtime/helpers/iterableToArray.js 246 bytes {0} [built]
1:49:47 PM: [112] ./node_modules/@babel/runtime/helpers/nonIterableSpread.js 308 bytes {0} [built]
1:49:47 PM: [113] ./node_modules/@babel/runtime/helpers/arrayWithHoles.js 184 bytes {0} [built]
1:49:47 PM: [114] ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js 683 bytes {0} [built]
1:49:47 PM: [115] ./node_modules/@babel/runtime/helpers/nonIterableRest.js 309 bytes {0} [built]
1:49:47 PM: [174] ./src/embed.ts + 210 modules 947 KiB {0} [built]
1:49:47 PM: | ./src/embed.ts 864 bytes [built]
1:49:47 PM: | ./src/index.ts 14.1 KiB [built]
1:49:47 PM: | ./node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js 49.6 KiB [built]
1:49:47 PM: | ./src/app/types/index.ts 744 bytes [built]
1:49:47 PM: | ./src/app/utils/index.ts 9.52 KiB [built]
1:49:47 PM: | ./src/app/log.ts 3.95 KiB [built]
1:49:47 PM: | ./src/app/user-agent.ts 3.82 KiB [built]
1:49:47 PM: | ./src/utils/options.ts 8.47 KiB [built]
1:49:47 PM: | ./src/app/rrweb.ts 3.54 KiB [built]
1:49:47 PM: | ./src/app/utils/call-query.ts 4.48 KiB [built]
1:49:47 PM: | ./src/app/realtime.ts 46 KiB [built]
1:49:47 PM: | ./src/app/slices.ts 29.8 KiB [built]
1:49:47 PM: | ./src/app/store.ts 808 bytes [built]
1:49:47 PM: | ./src/app/index.tsx 8.2 KiB [built]
1:49:47 PM: | ./src/utils/intercom.ts 2.45 KiB [built]
1:49:47 PM: | + 196 hidden modules
1:49:47 PM: + 173 hidden modules
1:49:47 PM: Done in 53.33s.
1:49:47 PM:
1:49:47 PM: (build.command completed in 53.5s)
1:49:47 PM:
1:49:47 PM: ────────────────────────────────────────────────────────────────
1:49:47 PM: 2. Deploy site
1:49:47 PM: ────────────────────────────────────────────────────────────────
1:49:47 PM:
1:49:47 PM:
1:49:47 PM: ────────────────────────────────────────────────────────────────
1:49:47 PM: Configuration error
1:49:47 PM: ────────────────────────────────────────────────────────────────
1:49:47 PM:
1:49:47 PM: Error message
1:49:47 PM: Deploy did not succeed: Deploy directory 'dist' does not exist
1:49:47 PM:
1:49:47 PM: Resolved config
1:49:47 PM: build:
1:49:47 PM: base: /opt/build/repo/widget
1:49:47 PM: command: yarn build
1:49:47 PM: commandOrigin: ui
1:49:47 PM: publish: /opt/build/repo/widget/dist
1:49:47 PM: publishOrigin: ui
1:49:47 PM: headers:
1:49:48 PM: - for: /*