Home
Support Forums

Error on build : CI= npm run export

error on deploying site
the error message: Command failed with exit code 1: CI= npm run export
the error location: In Build command from Netlify app: CI= npm run export

site name: chrissean-staging.netlify.app

Full build log:

12:31:41 PM: Build ready to start
12:31:43 PM: build-image version: 2cee85eb7f808bf3b6e87378c5307f9411f0a332
12:31:43 PM: build-image tag: v3.8.0
12:31:43 PM: buildbot version: d9a660540b05c414edfc0246347871ef0e3afee9
12:31:43 PM: Fetching cached dependencies
12:31:43 PM: Starting to download cache of 121.1MB
12:31:45 PM: Finished downloading cache in 1.407156183s
12:31:45 PM: Starting to extract cache
12:31:48 PM: Finished extracting cache in 3.194605897s
12:31:48 PM: Finished fetching cache in 4.641682846s
12:31:48 PM: Starting to prepare the repo for build
12:31:48 PM: Preparing Git Reference refs/heads/staging
12:31:49 PM: Parsing package.json dependencies
12:31:50 PM: Starting build script
12:31:50 PM: Installing dependencies
12:31:50 PM: Python version set to 2.7
12:31:51 PM: Started restoring cached node version
12:31:53 PM: Finished restoring cached node version
12:31:54 PM: v12.18.0 is already installed.
12:31:54 PM: Now using node v12.18.0 (npm v6.14.4)
12:31:55 PM: Started restoring cached build plugins
12:31:55 PM: Finished restoring cached build plugins
12:31:55 PM: Attempting ruby version 2.7.1, read from environment
12:31:55 PM: Started restoring cached ruby version
12:31:55 PM: Finished restoring cached ruby version
12:31:58 PM: Using ruby version 2.7.1
12:31:58 PM: Using PHP version 5.6
12:31:58 PM: Started restoring cached node modules
12:31:58 PM: Finished restoring cached node modules
12:31:58 PM: Started restoring cached go cache
12:31:58 PM: Finished restoring cached go cache
12:31:58 PM: go version go1.14.4 linux/amd64
12:31:58 PM: go version go1.14.4 linux/amd64
12:31:58 PM: Installing missing commands
12:31:58 PM: Verify run directory
12:31:59 PM: ​
12:31:59 PM: ────────────────────────────────────────────────────────────────
12:31:59 PM:   Netlify Build                                                 
12:31:59 PM: ────────────────────────────────────────────────────────────────
12:31:59 PM: ​
12:31:59 PM: ❯ Version
12:31:59 PM:   @netlify/build 15.11.2
12:31:59 PM: ​
12:31:59 PM: ❯ Flags
12:31:59 PM:   deployId: 60ed172db0e19a89c3e67c82
12:31:59 PM: ​
12:31:59 PM: ❯ Current directory
12:31:59 PM:   /opt/build/repo
12:31:59 PM: ​
12:31:59 PM: ❯ Config file
12:31:59 PM:   No config file was defined: using default values.
12:31:59 PM: ​
12:31:59 PM: ❯ Context
12:31:59 PM:   production
12:31:59 PM: ​
12:31:59 PM: ────────────────────────────────────────────────────────────────
12:31:59 PM:   1. Build command from Netlify app                             
12:31:59 PM: ────────────────────────────────────────────────────────────────
12:31:59 PM: ​
12:31:59 PM: $ CI= npm run export
12:31:59 PM: > TODO@0.0.1 export /opt/build/repo
12:31:59 PM: > sapper export --legacy
12:31:59 PM: > Building...
12:32:09 PM: ┌──────────────────────────────┐
12:32:09 PM: │ built client with 8 warnings │
12:32:09 PM: └──────────────────────────────┘
12:32:09 PM: > src/routes/_error.svelte
12:32:09 PM: Error has unused export property 'error'. If it is for external reference only, please consider using `export const error`
12:32:09 PM: 1: <script>
12:32:09 PM: 2:   export let status;
12:32:09 PM: 3:   export let error;
12:32:09 PM:                 ^
12:32:09 PM: 4:   import HeroWrapper from '../components/shared/HeroWrapper.svelte'
12:32:09 PM: 5:   import errorImage from '../../static/assets/images/404.jpg'
12:32:09 PM: > src/routes/blog/[slug].svelte
12:32:09 PM: U5Bslugu5D has unused export property 'author'. If it is for external reference only, please consider using `export const author`
12:32:09 PM: 24:   import RelatedBlog from '../../components/blog/RelatedBlog.svelte';
12:32:09 PM: 25:   export let post;
12:32:09 PM: 26:   export let author;
12:32:09 PM:                  ^
12:32:09 PM: 27:   //the next two lines is for closing the menu when the route is changed
12:32:09 PM: 28:   import sideMenuStore from "../../components/stores/sideMenuStore"
12:32:09 PM: > src/routes/blog/index.svelte
12:32:09 PM: Blog has unused export property 'allPosts'. If it is for external reference only, please consider using `export const allPosts`
12:32:09 PM: 23:   export let featuredPost;
12:32:09 PM: 24:   export let categories
12:32:09 PM: 25:   export let allPosts;
12:32:09 PM:                  ^
12:32:09 PM: 26:   export let currentPage;
12:32:09 PM: 27:   export let lastPage;
12:32:09 PM: > src/components/Nav.svelte
12:32:09 PM: Nav has unused export property 'segment'. If it is for external reference only, please consider using `export const segment`
12:32:09 PM: 1: <script>
12:32:09 PM: 2:   export let segment;
12:32:09 PM:                 ^
12:32:09 PM: 3:   import showModal from "./stores/modalStore"
12:32:09 PM: 4:   import sideMenuStore from "./stores/sideMenuStore"
12:32:09 PM: > src/components/SubScribe.svelte
12:32:09 PM: Unused CSS selector ".modal__body > form > button:hover"
12:32:09 PM: 186:         cursor: pointer;
12:32:09 PM: 187:     }
12:32:09 PM: 188:     .modal__body > form > button:hover{
12:32:09 PM:          ^
12:32:09 PM: 189:         background: #fff;
12:32:09 PM: 190:         color: #000;
12:32:09 PM: > src/components/home/DbcreativeSection.svelte
12:32:09 PM: Unused CSS selector ".content__body > p"
12:32:09 PM: 50:         color: #fff;
12:32:09 PM: 51:     }
12:32:09 PM: 52:     .content__body > p{
12:32:09 PM:         ^
12:32:09 PM: 53:         font-family: "Roboto";
12:32:09 PM: 54:         font-size: 16px;
12:32:09 PM: > src/components/home/DbcreativeSection.svelte
12:32:09 PM: Unused CSS selector ".content__body > p"
12:32:09 PM: 101:             line-height: 1;
12:32:09 PM: 102:         }
12:32:09 PM: 103:         .content__body > p {
12:32:09 PM:              ^
12:32:09 PM: 104:             text-align: left;
12:32:09 PM: 105:             font-size: 18px;
12:32:09 PM: > src/components/YoutubeVideo.svelte
12:32:09 PM: A11y: <a> element should have an href attribute
12:32:09 PM: 36:     <div in:show={{duration:1000}} class="thumb">
12:32:09 PM: 37:         <img src="http://img.youtube.com/vi/{videoId}/maxresdefault.jpg" alt="">
12:32:09 PM: 38:         <a role="button" class="thumb__play" on:click|preventDefault={playHandler}>
12:32:09 PM:             ^
12:32:09 PM: 39:             <img src={playButton} alt="play button">
12:32:09 PM: 40:         </a>
12:32:09 PM:    66.1 kB client.e1df3c42.js
12:32:09 PM:            │ node_modules/svelte/internal/index.mjs (18.6%)
12:32:09 PM:            │ src/node_modules/@sapper/app.mjs (13.7%)
12:32:09 PM:            │ src/components/SideMenu.svelte (10.7%)
12:32:09 PM:            │ src/components/SubScribe.svelte (9.1%)
12:32:09 PM:            │ src/components/Nav.svelte (9.0%)
12:32:09 PM:            │ src/node_modules/@sapper/internal/App.svelte (5.7%)
12:32:09 PM:            │ src/components/shared/Footer.svelte (4.9%)
12:32:09 PM:            │ src/routes/_error.svelte (4.6%)
12:32:09 PM:            │ src/components/StickySubscribeButton.svelte (4.4%)
12:32:09 PM:            │ src/routes/_layout.svelte (4.1%)
12:32:09 PM:            │ src/components/shared/Boxed.svelte (1.5%)
12:32:09 PM:            │ src/node_modules/@sapper/internal/manifest-client.mjs (1.4%)
12:32:09 PM:            │ src/components/LinkIcon.svelte (1.4%)
12:32:09 PM:            │ node_modules/svelte/store/index.mjs (1.3%)
12:32:09 PM:            │ src/components/shared/HeroWrapper.svelte (1.2%)
12:32:09 PM:            │ static/assets/images/Instagram.png (1.1%)
12:32:09 PM:            │ static/assets/images/logo.png (1.0%)
12:32:09 PM:            │ static/assets/images/apple-podcast.png (0.9%)
12:32:09 PM:            │ static/assets/images/spotify.png (0.9%)
12:32:09 PM:            │ static/assets/images/Twitter.png (0.7%)
12:32:09 PM:            │ static/assets/images/newsletter-logo.png (0.7%)
12:32:09 PM:            │ static/assets/images/youtube-black.png (0.6%)
12:32:09 PM:            │ node_modules/svelte/easing/index.mjs (0.6%)
12:32:09 PM:            │ static/assets/images/Twitch.png (0.5%)
12:32:09 PM:            │ node_modules/svelte/transition/index.mjs (0.4%)
12:32:09 PM:            │ static/assets/images/facebook.png (0.4%)
12:32:09 PM:            │ static/assets/images/email.png (0.3%)
12:32:09 PM:            │ static/assets/images/youtube-white.png (0.3%)
12:32:09 PM:            │ src/components/stores/modalStore.js (0.1%)
12:32:09 PM:            │ src/components/stores/sideMenuStore.js (0.0%)
12:32:09 PM:            │ src/client.js (0.0%)
12:32:09 PM:            │ static/assets/images/404.jpg (0.0%)
12:32:09 PM:            └ src/node_modules/@sapper/internal/shared.mjs (0.0%)
12:32:09 PM:      559 B inject_styles.5607aec6.js
12:32:09 PM:            └ inject_styles.js
12:32:09 PM:     102 kB index.79df189a.js
12:32:09 PM:            │ src/components/home/YoutubeSection.svelte (14.6%)
12:32:09 PM:            │ src/components/home/BlogSection.svelte (8.7%)
12:32:09 PM:            │ src/components/home/TwitchSection.svelte (8.4%)
12:32:09 PM:            │ src/components/home/SpotifySection.svelte (8.3%)
12:32:09 PM:            │ src/components/home/DividedSection.svelte (7.2%)
12:32:09 PM:            │ static/assets/images/treehouse-logo.png (7.0%)
12:32:09 PM:            │ src/routes/index.svelte (5.8%)
12:32:09 PM:            │ static/assets/images/spotify-image.png (4.5%)
12:32:09 PM:            │ node_modules/youtube-player/dist/YouTubePlayer.js (3.7%)
12:32:09 PM:            │ src/components/YoutubeVideo.svelte (3.5%)
12:32:09 PM:            │ node_modules/svelte-youtube/src/index.svelte (3.1%)
12:32:09 PM:            │ node_modules/debug/src/browser.js (2.9%)
12:32:09 PM:            │ src/components/home/DbcreativeSection.svelte (2.8%)
12:32:09 PM:            │ node_modules/debug/src/debug.js (2.7%)
12:32:09 PM:            │ src/components/home/HeroSection.svelte (2.6%)
12:32:09 PM:            │ node_modules/svelte-intersection-observer/src/IntersectionObserver.svelte (2.4%)
12:32:09 PM:            │ node_modules/youtube-player/dist/index.js (1.9%)
12:32:09 PM:            │ node_modules/ms/index.js (1.7%)
12:32:09 PM:            │ static/assets/images/play-button.png (1.5%)
12:32:09 PM:            │ src/components/shared/FullHeightSection.svelte (1.2%)
12:32:09 PM:            │ src/components/shared/SectionHeaderText.svelte (1.2%)
12:32:09 PM:            │ node_modules/load-script/index.js (1.0%)
12:32:09 PM:            │ node_modules/youtube-player/dist/loadYouTubeIframeApi.js (0.8%)
12:32:09 PM:            │ node_modules/sister/src/sister.js (0.8%)
12:32:09 PM:            │ node_modules/youtube-player/dist/functionNames.js (0.6%)
12:32:09 PM:            │ node_modules/youtube-player/dist/FunctionStateMap.js (0.5%)
12:32:09 PM:            │ node_modules/youtube-player/dist/eventNames.js (0.3%)
12:32:09 PM:            │ commonjsHelpers.js (0.3%)
12:32:09 PM:            │ node_modules/youtube-player/dist/constants/PlayerStates.js (0.2%)
12:32:09 PM:            │ static/assets/images/dbc-logo.png (0.0%)
12:32:09 PM:            │ static/assets/images/chris-mentor.png (0.0%)
12:32:09 PM:            └ static/assets/images/home-ogimage.png (0.0%)
12:32:09 PM:      802 B FullWidthSection.8ccb1ace.js
12:32:09 PM:            └ src/components/shared/FullWidthSection.svelte
12:32:09 PM:    2.15 kB BlogItem.48f300f3.js
12:32:09 PM:            └ src/components/shared/BlogItem.svelte
12:32:09 PM:      765 B about.7f2ddedf.js
12:32:09 PM:            └ src/routes/about.svelte
12:32:09 PM:    14.4 kB index.5a36a671.js
12:32:09 PM:            └ src/routes/blog/index.svelte
12:32:09 PM:    4.63 kB blog-ogimage.ed2bcf58.js
12:32:09 PM:            │ src/components/blog/Blogs.svelte (58.4%)
12:32:09 PM:            │ src/components/blog/FeaturedBlog.svelte (41.2%)
12:32:09 PM:            └ static/assets/images/blog-ogimage.png (0.4%)
12:32:09 PM:      15 kB [pageNumber].5e1c390f.js
12:32:09 PM:            │ src/components/blog/BlogsWithPagination.svelte (75.5%)
12:32:09 PM:            └ src/routes/blog/page/[pageNumber].svelte (24.5%)
12:32:09 PM:      19 kB [slug].d3c0cb8b.js
12:32:09 PM:            │ src/routes/blog/[slug].svelte (44.0%)
12:32:09 PM:            │ node_modules/svelte-share-buttons-component/src/Twitter.svelte (10.5%)
12:32:09 PM:            │ node_modules/svelte-share-buttons-component/src/Reddit.svelte (10.4%)
12:32:09 PM:            │ src/components/blog/RelatedBlog.svelte (9.3%)
12:32:09 PM:            │ node_modules/svelte-share-buttons-component/src/ShareButton.svelte (9.2%)
12:32:09 PM:            │ node_modules/svelte-share-buttons-component/src/LinkedIn.svelte (8.5%)
12:32:09 PM:            └ node_modules/svelte-share-buttons-component/src/Facebook.svelte (8.3%)
12:32:25 PM: ┌───────────────────────────────────────┐
12:32:25 PM: │ built client (legacy) with 8 warnings │
12:32:25 PM: └───────────────────────────────────────┘
12:32:25 PM: > src/routes/_error.svelte
12:32:25 PM: Error has unused export property 'error'. If it is for external reference only, please consider using `export const error`
12:32:25 PM: 1: <script>
12:32:25 PM: 2:   export let status;
12:32:25 PM: 3:   export let error;
12:32:25 PM:                 ^
12:32:25 PM: 4:   import HeroWrapper from '../components/shared/HeroWrapper.svelte'
12:32:25 PM: 5:   import errorImage from '../../static/assets/images/404.jpg'
12:32:25 PM: > src/routes/blog/[slug].svelte
12:32:25 PM: U5Bslugu5D has unused export property 'author'. If it is for external reference only, please consider using `export const author`
12:32:25 PM: 24:   import RelatedBlog from '../../components/blog/RelatedBlog.svelte';
12:32:25 PM: 25:   export let post;
12:32:25 PM: 26:   export let author;
12:32:25 PM:                  ^
12:32:25 PM: 27:   //the next two lines is for closing the menu when the route is changed
12:32:25 PM: 28:   import sideMenuStore from "../../components/stores/sideMenuStore"
12:32:25 PM: > src/routes/blog/index.svelte
12:32:25 PM: Blog has unused export property 'allPosts'. If it is for external reference only, please consider using `export const allPosts`
12:32:25 PM: 23:   export let featuredPost;
12:32:25 PM: 24:   export let categories
12:32:25 PM: 25:   export let allPosts;
12:32:25 PM:                  ^
12:32:25 PM: 26:   export let currentPage;
12:32:25 PM: 27:   export let lastPage;
12:32:25 PM: > src/components/Nav.svelte
12:32:25 PM: Nav has unused export property 'segment'. If it is for external reference only, please consider using `export const segment`
12:32:25 PM: 1: <script>
12:32:25 PM: 2:   export let segment;
12:32:25 PM:                 ^
12:32:25 PM: 3:   import showModal from "./stores/modalStore"
12:32:25 PM: 4:   import sideMenuStore from "./stores/sideMenuStore"
12:32:25 PM: > src/components/SubScribe.svelte
12:32:25 PM: Unused CSS selector ".modal__body > form > button:hover"
12:32:25 PM: 186:         cursor: pointer;
12:32:25 PM: 187:     }
12:32:25 PM: 188:     .modal__body > form > button:hover{
12:32:25 PM:          ^
12:32:25 PM: 189:         background: #fff;
12:32:25 PM: 190:         color: #000;
12:32:25 PM: > src/components/home/DbcreativeSection.svelte
12:32:25 PM: Unused CSS selector ".content__body > p"
12:32:25 PM: 50:         color: #fff;
12:32:25 PM: 51:     }
12:32:25 PM: 52:     .content__body > p{
12:32:25 PM:         ^
12:32:25 PM: 53:         font-family: "Roboto";
12:32:25 PM: 54:         font-size: 16px;
12:32:25 PM: > src/components/home/DbcreativeSection.svelte
12:32:25 PM: Unused CSS selector ".content__body > p"
12:32:25 PM: 101:             line-height: 1;
12:32:25 PM: 102:         }
12:32:25 PM: 103:         .content__body > p {
12:32:25 PM:              ^
12:32:25 PM: 104:             text-align: left;
12:32:25 PM: 105:             font-size: 18px;
12:32:25 PM: > src/components/YoutubeVideo.svelte
12:32:25 PM: A11y: <a> element should have an href attribute
12:32:25 PM: 36:     <div in:show={{duration:1000}} class="thumb">
12:32:25 PM: 37:         <img src="http://img.youtube.com/vi/{videoId}/maxresdefault.jpg" alt="">
12:32:25 PM: 38:         <a role="button" class="thumb__play" on:click|preventDefault={playHandler}>
12:32:25 PM:             ^
12:32:25 PM: 39:             <img src={playButton} alt="play button">
12:32:25 PM: 40:         </a>
12:32:25 PM:    87.3 kB client.f34e3bea.js
12:32:25 PM:            │ node_modules/regenerator-runtime/runtime.js (12.9%)
12:32:25 PM:            │ node_modules/svelte/internal/index.mjs (12.3%)
12:32:25 PM:            │ src/node_modules/@sapper/app.mjs (12.2%)
12:32:25 PM:            │ src/components/SideMenu.svelte (8.9%)
12:32:25 PM:            │ src/components/Nav.svelte (8.3%)
12:32:25 PM:            │ src/components/SubScribe.svelte (7.6%)
12:32:25 PM:            │ src/node_modules/@sapper/internal/App.svelte (5.0%)
12:32:25 PM:            │ src/components/StickySubscribeButton.svelte (4.5%)
12:32:25 PM:            │ src/components/shared/Footer.svelte (4.4%)
12:32:25 PM:            │ src/routes/_error.svelte (4.1%)
12:32:25 PM:            │ src/routes/_layout.svelte (3.8%)
12:32:25 PM:            │ src/components/shared/Boxed.svelte (1.8%)
12:32:25 PM:            │ src/components/LinkIcon.svelte (1.7%)
12:32:25 PM:            │ src/components/shared/HeroWrapper.svelte (1.6%)
12:32:25 PM:            │ src/node_modules/@sapper/internal/manifest-client.mjs (1.1%)
12:32:25 PM:            │ node_modules/svelte/store/index.mjs (0.8%)
12:32:25 PM:            │ static/assets/images/Instagram.png (0.7%)
12:32:25 PM:            │ static/assets/images/logo.png (0.7%)
12:32:25 PM:            │ static/assets/images/apple-podcast.png (0.6%)
12:32:25 PM:            │ static/assets/images/spotify.png (0.6%)
12:32:25 PM:            │ node_modules/svelte/transition/index.mjs (0.6%)
12:32:25 PM:            │ static/assets/images/Twitter.png (0.5%)
12:32:25 PM:            │ static/assets/images/newsletter-logo.png (0.4%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/typeof.js (0.4%)
12:32:25 PM:            │ static/assets/images/youtube-black.png (0.4%)
12:32:25 PM:            │ static/assets/images/Twitch.png (0.4%)
12:32:25 PM:            │ node_modules/svelte/easing/index.mjs (0.4%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js (0.3%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/createClass.js (0.3%)
12:32:25 PM:            │ static/assets/images/facebook.png (0.2%)
12:32:25 PM:            │ static/assets/images/email.png (0.2%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js (0.2%)
12:32:25 PM:            │ static/assets/images/youtube-white.png (0.2%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/inherits.js (0.2%)
12:32:25 PM:            │ commonjsHelpers.js (0.2%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/typeof.js (0.2%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/defineProperty.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/nonIterableRest.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/classCallCheck.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/slicedToArray.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/iterableToArray.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/toConsumableArray.js (0.1%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js (0.0%)
12:32:25 PM:            │ node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js (0.0%)
12:32:25 PM:            │ src/components/stores/modalStore.js (0.0%)
12:32:25 PM:            │ src/client.js (0.0%)
12:32:25 PM:            │ src/components/stores/sideMenuStore.js (0.0%)
12:32:25 PM:            │ static/assets/images/404.jpg (0.0%)
12:32:25 PM:            │ node_modules/@babel/runtime/regenerator/index.js (0.0%)
12:32:25 PM:            └ src/node_modules/@sapper/internal/shared.mjs (0.0%)
12:32:25 PM:      559 B inject_styles.fe622066.js
12:32:25 PM:            └ inject_styles.js
12:32:25 PM:     112 kB index.5f631b00.js
12:32:25 PM:            │ src/components/home/YoutubeSection.svelte (14.2%)
12:32:25 PM:            │ src/components/home/BlogSection.svelte (9.1%)
12:32:25 PM:            │ src/components/home/SpotifySection.svelte (8.6%)
12:32:25 PM:            │ src/components/home/TwitchSection.svelte (8.6%)
12:32:25 PM:            │ src/components/home/DividedSection.svelte (7.2%)
12:32:25 PM:            │ src/routes/index.svelte (6.3%)
12:32:25 PM:            │ static/assets/images/treehouse-logo.png (5.8%)
12:32:25 PM:            │ src/components/YoutubeVideo.svelte (4.0%)
12:32:25 PM:            │ static/assets/images/spotify-image.png (3.7%)
12:32:25 PM:            │ node_modules/svelte-youtube/src/index.svelte (3.4%)
12:32:25 PM:            │ node_modules/svelte-intersection-observer/src/IntersectionObserver.svelte (3.4%)
12:32:25 PM:            │ src/components/home/DbcreativeSection.svelte (3.3%)
12:32:25 PM:            │ node_modules/youtube-player/dist/YouTubePlayer.js (3.2%)
12:32:25 PM:            │ src/components/home/HeroSection.svelte (3.1%)
12:32:25 PM:            │ node_modules/debug/src/browser.js (2.5%)
12:32:25 PM:            │ node_modules/debug/src/debug.js (2.4%)
12:32:25 PM:            │ src/components/shared/FullHeightSection.svelte (1.8%)
12:32:25 PM:            │ src/components/shared/SectionHeaderText.svelte (1.7%)
12:32:25 PM:            │ node_modules/youtube-player/dist/index.js (1.6%)
12:32:25 PM:            │ node_modules/ms/index.js (1.4%)
12:32:25 PM:            │ static/assets/images/play-button.png (1.3%)
12:32:25 PM:            │ node_modules/load-script/index.js (0.8%)
12:32:25 PM:            │ node_modules/youtube-player/dist/loadYouTubeIframeApi.js (0.7%)
12:32:25 PM:            │ node_modules/sister/src/sister.js (0.6%)
12:32:25 PM:            │ node_modules/youtube-player/dist/functionNames.js (0.5%)
12:32:25 PM:            │ node_modules/youtube-player/dist/FunctionStateMap.js (0.5%)
12:32:25 PM:            │ node_modules/youtube-player/dist/eventNames.js (0.3%)
12:32:25 PM:            │ node_modules/youtube-player/dist/constants/PlayerStates.js (0.2%)
12:32:25 PM:            │ static/assets/images/dbc-logo.png (0.0%)
12:32:25 PM:            │ static/assets/images/chris-mentor.png (0.0%)
12:32:25 PM:            └ static/assets/images/home-ogimage.png (0.0%)
12:32:25 PM:    1.77 kB FullWidthSection.37829e74.js
12:32:25 PM:            │ src/components/shared/FullWidthSection.svelte (82.1%)
12:32:25 PM:            └ node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js (17.9%)
12:32:25 PM:    2.74 kB BlogItem.35a0eebe.js
12:32:25 PM:            └ src/components/shared/BlogItem.svelte
12:32:25 PM:    1.33 kB about.005d9afb.js
12:32:25 PM:            └ src/routes/about.svelte
12:32:25 PM:    15.8 kB index.9da9187a.js
12:32:25 PM:            └ src/routes/blog/index.svelte
12:32:25 PM:    6.12 kB blog-ogimage.81680925.js
12:32:25 PM:            │ src/components/blog/Blogs.svelte (57.7%)
12:32:25 PM:            │ src/components/blog/FeaturedBlog.svelte (42.0%)
12:32:25 PM:            └ static/assets/images/blog-ogimage.png (0.3%)
12:32:25 PM:    16.9 kB [pageNumber].c4f32039.js
12:32:25 PM:            │ src/components/blog/BlogsWithPagination.svelte (72.2%)
12:32:25 PM:            └ src/routes/blog/page/[pageNumber].svelte (27.8%)
12:32:25 PM:    24.1 kB [slug].3240ae8c.js
12:32:25 PM:            │ src/routes/blog/[slug].svelte (40.4%)
12:32:25 PM:            │ node_modules/svelte-share-buttons-component/src/Twitter.svelte (11.2%)
12:32:25 PM:            │ node_modules/svelte-share-buttons-component/src/Reddit.svelte (10.6%)
12:32:25 PM:            │ node_modules/svelte-share-buttons-component/src/ShareButton.svelte (10.0%)
12:32:25 PM:            │ src/components/blog/RelatedBlog.svelte (9.6%)
12:32:25 PM:            │ node_modules/svelte-share-buttons-component/src/LinkedIn.svelte (9.1%)
12:32:25 PM:            └ node_modules/svelte-share-buttons-component/src/Facebook.svelte (9.0%)
12:32:27 PM: ┌──────────────────────────────┐
12:32:27 PM: │ built server with 5 warnings │
12:32:27 PM: └──────────────────────────────┘
12:32:27 PM: > src/routes/_error.svelte
12:32:27 PM: Error has unused export property 'error'. If it is for external reference only, please consider using `export const error`
12:32:27 PM: 1: <script>
12:32:27 PM: 2:   export let status;
12:32:27 PM: 3:   export let error;
12:32:27 PM:                 ^
12:32:27 PM: 4:   import HeroWrapper from '../components/shared/HeroWrapper.svelte'
12:32:27 PM: 5:   import errorImage from '../../static/assets/images/404.jpg'
12:32:27 PM: > src/routes/blog/index.svelte
12:32:27 PM: Blog has unused export property 'allPosts'. If it is for external reference only, please consider using `export const allPosts`
12:32:27 PM: 23:   export let featuredPost;
12:32:27 PM: 24:   export let categories
12:32:27 PM: 25:   export let allPosts;
12:32:27 PM:                  ^
12:32:27 PM: 26:   export let currentPage;
12:32:27 PM: 27:   export let lastPage;
12:32:27 PM: > src/routes/blog/[slug].svelte
12:32:27 PM: U5Bslugu5D has unused export property 'author'. If it is for external reference only, please consider using `export const author`
12:32:27 PM: 24:   import RelatedBlog from '../../components/blog/RelatedBlog.svelte';
12:32:27 PM: 25:   export let post;
12:32:27 PM: 26:   export let author;
12:32:27 PM:                  ^
12:32:27 PM: 27:   //the next two lines is for closing the menu when the route is changed
12:32:27 PM: 28:   import sideMenuStore from "../../components/stores/sideMenuStore"
12:32:27 PM: > src/components/Nav.svelte
12:32:27 PM: Nav has unused export property 'segment'. If it is for external reference only, please consider using `export const segment`
12:32:27 PM: 1: <script>
12:32:27 PM: 2:   export let segment;
12:32:27 PM:                 ^
12:32:27 PM: 3:   import showModal from "./stores/modalStore"
12:32:27 PM: 4:   import sideMenuStore from "./stores/sideMenuStore"
12:32:27 PM: > src/components/YoutubeVideo.svelte
12:32:27 PM: A11y: <a> element should have an href attribute
12:32:27 PM: 36:     <div in:show={{duration:1000}} class="thumb">
12:32:27 PM: 37:         <img src="http://img.youtube.com/vi/{videoId}/maxresdefault.jpg" alt="">
12:32:27 PM: 38:         <a role="button" class="thumb__play" on:click|preventDefault={playHandler}>
12:32:27 PM:             ^
12:32:27 PM: 39:             <img src={playButton} alt="play button">
12:32:27 PM: 40:         </a>
12:32:27 PM: > Built in 27.7s
12:32:27 PM: /opt/build/repo/__sapper__/build/server/server.js:1856
12:32:32 PM: 	return `<header class="${"svelte-fvu6qp"}"><div class="${"svelte-fvu6qp"}"><div class="${["menu svelte-fvu6qp", ($sideMenuStore?.showMenu) ? "fixed" : ""].join(" ").trim()}"><div for="${"menu-toggler"}" class="${["svelte-fvu6qp", ($sideMenuStore?.showMenu) ? "active" : ""].join(" ").trim()}"><span class="${"svelte-fvu6qp"}"></span>	                                                                                                                                ^SyntaxError: Unexpected token '.'    at wrapSafe (internal/modules/cjs/loader.js:1054:16)    at Module._compile (internal/modules/cjs/loader.js:1102:27)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)    at Module.load (internal/modules/cjs/loader.js:986:32)    at Function.Module._load (internal/modules/cjs/loader.js:879:14)    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)    at internal/main/run_main_module.js:17:47> timed out waiting for connection
12:32:32 PM: npm ERR! code ELIFECYCLE
12:32:32 PM: npm ERR! errno 1
12:32:32 PM: npm ERR! TODO@0.0.1 export: `sapper export --legacy`
12:32:32 PM: npm ERR! Exit status 1
12:32:32 PM: npm ERR!
12:32:32 PM: npm ERR! Failed at the TODO@0.0.1 export script.
12:32:32 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:32:32 PM: npm ERR! A complete log of this run can be found in:
12:32:32 PM: npm ERR!     /opt/buildhome/.npm/_logs/2021-07-13T04_32_32_623Z-debug.log
12:32:32 PM: ​
12:32:32 PM: ────────────────────────────────────────────────────────────────
12:32:32 PM:   "build.command" failed                                        
12:32:32 PM: ────────────────────────────────────────────────────────────────
12:32:32 PM: ​
12:32:32 PM:   Error message
12:32:32 PM:   Command failed with exit code 1: CI= npm run export
12:32:32 PM: ​
12:32:32 PM:   Error location
12:32:32 PM:   In Build command from Netlify app:
12:32:32 PM:   CI= npm run export
12:32:32 PM: ​
12:32:32 PM:   Resolved config
12:32:32 PM:   build:
12:32:32 PM:     command: CI= npm run export
12:32:32 PM:     commandOrigin: ui
12:32:32 PM:     environment:
12:32:32 PM:       - SAPPER_APP_DIB_KEY
12:32:32 PM:       - SAPPER_APP_GA_ID
12:32:32 PM:       - SAPPER_APP_TWITCH_PARENT
12:32:32 PM:     publish: /opt/build/repo/__sapper__/export
12:32:32 PM:     publishOrigin: ui
12:32:33 PM: Caching artifacts
12:32:33 PM: Started saving node modules
12:32:33 PM: Finished saving node modules
12:32:33 PM: Started saving build plugins
12:32:33 PM: Finished saving build plugins
12:32:33 PM: Started saving pip cache
12:32:33 PM: Finished saving pip cache
12:32:33 PM: Started saving emacs cask dependencies
12:32:33 PM: Finished saving emacs cask dependencies
12:32:33 PM: Started saving maven dependencies
12:32:33 PM: Finished saving maven dependencies
12:32:33 PM: Started saving boot dependencies
12:32:33 PM: Finished saving boot dependencies
12:32:33 PM: Started saving rust rustup cache
12:32:33 PM: Finished saving rust rustup cache
12:32:33 PM: Started saving go dependencies
12:32:33 PM: Finished saving go dependencies
12:32:33 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:32:33 PM: Creating deploy upload records
12:32:33 PM: Failing build: Failed to build site
12:32:33 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
12:32:33 PM: Finished processing build request in 49.906867015s

Hi @dalbong.codes,

You’re using Optional Chaining in your code (foo?.bar) and that’s not supported in Node 12. I think the minimum needed for that is Node 13 or 14. You might have some luck by updating to a newer Node version.