building stops in this point and it stays like that for a good few minutes. What could I do?
Hey there! Welcome to the community and thanks for posting! We can help you out with this, but I’ll need to take a deeper look. Can you send us the url to the failed build? That will allow us to look at all the errors in context.
Thanks!
This are de url : Netlify App
3:43:25 PM: {“type”:“job”,“id”:4,“error”:null,“result”:{“result”:[{“buffer”:true,“string”:true},{“data”:{“version”:3,“names”:[“getCurrentInstance”,“inject”,“onUnmounted”,“onDeactivated”,“onActivated”,“computed”,“unref”,“watchEffect”,“defineComponent”,“reactive”,“h”,“provide”,“ref”,“watch”,“shallowRef”,“shallowReactive”,“nextTick”,“setupDevtoolsPlugin”,“isBrowser”,“window”,“isESModule”,“obj”,“__esModule”,“Symbol”,“toStringTag”,“assign”,“Object”,“applyToParams”,“fn”,“params”,“newParams”,“key”,“value”,“isArray”,“map”,“noop”,“Array”,“warn”,“msg”,“args”,“from”,“arguments”,“slice”,“console”,“apply”,“concat”,“TRAILING_SLASH_RE”,“removeTrailingSlash”,“path”,“replace”,“parseURL”,“parseQuery”,“location”,“currentLocation”,“query”,“searchString”,“hash”,“hashPos”,“indexOf”,“searchPos”,“length”,“resolveRelativePath”,“fullPath”,“stringifyURL”,“stringifyQuery”,“stripBase”,“pathname”,“base”,“toLowerCase”,“startsWith”,“isSameRouteLocation”,“a”,“b”,“aLastIndex”,“matched”,“bLastIndex”,“isSameRouteRecord”,“isSameRouteLocationParams”,“aliasOf”,“keys”,“isSameRouteLocationParamsValue”,“isEquivalentArray”,“every”,“i”,“to”,“process”,“env”,“NODE_ENV”,“fromSegments”,“split”,“toSegments”,“lastToSegment”,“push”,“position”,“toPosition”,“segment”,“join”,“NavigationType”,“NavigationDirection”,“START”,“normalizeBase”,“baseEl”,“document”,“querySelector”,“getAttribute”,“BEFORE_HASH_RE”,“createHref”,“getElementPosition”,“el”,“offset”,“docRect”,“documentElement”,“getBoundingClientRect”,“elRect”,“behavior”,“left”,“top”,“computeScrollPosition”,“pageXOffset”,“pageYOffset”,“scrollToPosition”,“scrollToOptions”,“positionEl”,“isIdSelector”,“getElementById”,“foundEl”,“err”,“style”,“scrollTo”,“getScrollKey”,“delta”,“history”,“state”,“scrollPositions”,“Map”,“saveScrollPosition”,“scrollPosition”,“set”,“getSavedScrollPosition”,“scroll”,“get”,“delete”,“createBaseLocation”,“protocol”,“host”,“createCurrentLocation”,“search”,“slicePos”,“includes”,“pathFromHash”,“useHistoryListeners”,“historyState”,“listeners”,“teardowns”,“pauseState”,“popStateHandler”,“fromState”,“forEach”,“listener”,“type”,“pop”,“direction”,“forward”,“back”,“unknown”,“pauseListeners”,“listen”,“callback”,“teardown”,“index”,“splice”,“beforeUnloadListener”,“replaceState”,“destroy”,“removeEventListener”,“addEventListener”,“passive”,“buildState”,“current”,“replaced”,“computeScroll”,“useHistoryStateNavigation”,“changeLocation”,“hashIndex”,“url”,“error”,“data”,“currentState”,“createWebHistory”,“historyNavigation”,“historyListeners”,“go”,“triggerListeners”,“routerHistory”,“bind”,“defineProperty”,“enumerable”,“createMemoryHistory”,“queue”,“setLocation”,“info”,“shouldTrigger”,“Math”,“max”,“min”,“createWebHashHistory”,“endsWith”,“isRouteLocation”,“route”,“isRouteName”,“name”,“START_LOCATION_NORMALIZED”,“undefined”,“meta”,“redirectedFrom”,“NavigationFailureSymbol”,“NavigationFailureType”,“ErrorTypeMessages”,“JSON”,“stringify”,“stringifyRoute”,“createRouterError”,“Error”,“isNavigationFailure”,“propertiesToLog”,“BASE_PARAM_PATTERN”,“BASE_PATH_PARSER_OPTIONS”,“sensitive”,“strict”,“start”,“end”,“REGEX_CHARS_RE”,“tokensToParser”,“segments”,“extraOptions”,“options”,“score”,“pattern”,“segmentScores”,“tokenIndex”,“token”,“subSegmentScore”,“repeatable”,“optional”,“regexp”,“re”,“RegExp”,“message”,“subPattern”,“parse”,“match”,“avoidDuplicatedSlash”,“param”,“text”,“compareScoreArray”,“diff”,“comparePathParserScore”,“aScore”,“bScore”,“comp”,“abs”,“isLastScoreNegative”,“last”,“ROOT_TOKEN”,“VALID_PARAM_RE”,“tokenizePath”,“crash”,“buffer”,“previousState”,“tokens”,“finalizeSegment”,“char”,“customRe”,“consumeBuffer”,“addCharToBuffer”,“test”,“createRouteRecordMatcher”,“record”,“parent”,“parser”,“existingKeys”,“Set”,“has”,“add”,“matcher”,“children”,“alias”,“createRouterMatcher”,“routes”,“globalOptions”,“matchers”,“matcherMap”,“mergeOptions”,“getRecordMatcher”,“addRoute”,“originalRecord”,“isRootAdd”,“mainNormalizedRecord”,“normalizeRouteRecord”,“checkChildMissingNameWithEmptyPath”,“normalizedRecords”,“aliases”,“components”,“originalMatcher”,“normalizedRecord”,“parentPath”,“connectingSlash”,“checkMissingParamsInAbsolutePath”,“checkSameParams”,“isAliasRecord”,“removeRoute”,“redirect”,“insertMatcher”,“matcherRef”,“getRoutes”,“isRecordChildOf”,“resolve”,“invalidParams”,“filter”,“paramName”,“find”,“k”,“paramsFromLocation”,“m”,“parentMatcher”,“unshift”,“mergeMetaFields”,“beforeEnter”,“props”,“normalizeRecordProps”,“instances”,“leaveGuards”,“updateGuards”,“enterCallbacks”,“component”,“default”,“propsObject”,“reduce”,“defaults”,“partialOptions”,“isSameParam”,“String”,“some”,“child”,“HASH_RE”,“AMPERSAND_RE”,“SLASH_RE”,“EQUAL_RE”,“IM_RE”,“PLUS_RE”,“ENC_BRACKET_OPEN_RE”,“ENC_BRACKET_CLOSE_RE”,“ENC_CARET_RE”,“ENC_BACKTICK_RE”,“ENC_CURLY_OPEN_RE”,“ENC_PIPE_RE”,“ENC_CURLY_CLOSE_RE”,“ENC_SPACE_RE”,“commonEncode”,“encodeURI”,“encodeHash”,“encodeQueryValue”,“encodeQueryKey”,“encodePath”,“encodeParam”,“decode”,“decodeURIComponent”,“hasLeadingIM”,“searchParams”,“searchParam”,“eqPos”,“currentValue”,“values”,“v”,“normalizeQuery”,“normalizedQuery”,“matchedRouteKey”,“viewDepthKey”,“routerKey”,“routeLocationKey”,“routerViewLocationKey”,“useCallbacks”,“handlers”,“handler”,“reset”,“list”,“registerGuard”,“guard”,“removeFromList”,“onBeforeRouteLeave”,“leaveGuard”,“activeRecord”,“onBeforeRouteUpdate”,“updateGuard”,“guardToPromiseFn”,“enterCallbackArray”,“Promise”,“reject”,“next”,“valid”,“guardReturn”,“call”,“canOnlyBeCalledOnce”,“guardCall”,“then”,“toString”,“resolvedValue”,“_called”,“catch”,“called”,“extractComponentsGuards”,“guardType”,“guards”,“rawComponent”,“promise”,“__asyncLoader”,“__warnedDefineAsync”,“isRouteComponent”,“__vccOpts”,“componentPromise”,“resolved”,“resolvedComponent”,“loadRouteLocation”,“all”,“promises”,“useLink”,“router”,“currentRoute”,“activeRecordIndex”,“routeMatched”,“currentMatched”,“findIndex”,“parentRecordPath”,“getOriginalPath”,“isActive”,“includesParams”,“isExactActive”,“navigate”,“e”,“guardEvent”,“VUE_PROD_DEVTOOLS”,“instance”,“linkContextDevtools”,“__vrl_devtools”,“flush”,“href”,“RouterLinkImpl”,“compatConfig”,“MODE”,“required”,“Boolean”,“activeClass”,“exactActiveClass”,“custom”,“ariaCurrentValue”,“setup”,“slots”,“link”,“elClass”,“getLinkClass”,“linkActiveClass”,“linkExactActiveClass”,“onClick”,“class”,“RouterLink”,“metaKey”,“altKey”,“ctrlKey”,“shiftKey”,“defaultPrevented”,“button”,“currentTarget”,“target”,“preventDefault”,“outer”,“inner”,“innerValue”,“outerValue”,“propClass”,“globalClass”,“defaultClass”,“RouterViewImpl”,“inheritAttrs”,“attrs”,“warnDeprecatedUsage”,“injectedRoute”,“routeToDisplay”,“injectedDepth”,“depth”,“initialDepth”,“matchedRoute”,“matchedRouteRef”,“viewRef”,“oldInstance”,“oldName”,“size”,“currentName”,“ViewComponent”,“normalizeSlot”,“Component”,“routePropsOption”,“routeProps”,“onVnodeUnmounted”,“vnode”,“isUnmounted”,“internalInstances”,“r”,“__vrv_devtools”,“slot”,“slotContent”,“RouterView”,“parentName”,“parentSubTreeType”,“subTree”,“formatRouteLocation”,“routeLocation”,“tooltip”,“copy”,“omit”,“_custom”,“readOnly”,“display”,“formatDisplay”,“routerId”,“addDevtools”,“app”,“__hasDevtools”,“id”,“label”,“packageName”,“homepage”,“logo”,“componentStateTypes”,“api”,“now”,“on”,“inspectComponent”,“payload”,“ctx”,“instanceData”,“editable”,“visitComponentTree”,“treeNode”,“node”,“componentInstance”,“tags”,“textColor”,“backgroundColor”,“PINK_500”,“__devtoolsApi”,“devtoolsData”,“ORANGE_400”,“LIME_500”,“BLUE_600”,“refreshRoutesView”,“notifyComponentUpdate”,“sendInspectorTree”,“routerInspectorId”,“sendInspectorState”,“navigationsLayerId”,“addTimelineLayer”,“color”,“onError”,“addTimelineEvent”,“layerId”,“event”,“title”,“subtitle”,“logType”,“time”,“groupId”,“__navigationId”,“navigationId”,“beforeEach”,“afterEach”,“failure”,“status”,“addInspector”,“icon”,“treeFilterPlaceholder”,“activeRoutesPayload”,“resetMatchStateOnRouteRecord”,“isRouteMatching”,“markRouteRecordActive”,“rootNodes”,“formatRouteRecordForInspector”,“getInspectorTree”,“inspectorId”,“getInspectorState”,“__vd_id”,“nodeId”,“formatRouteRecordMatcherForStateInspector”,“modifierForKey”,“fields”,“CYAN_400”,“DARK”,“__vd_match”,“__vd_exactActive”,“__vd_active”,“routeRecordId”,“EXTRACT_REGEXP_RE”,“childRoute”,“found”,“nonEndingRE”,“decodedPath”,“ret”,“createRouter”,“parseQuery$1”,"stringifyQu
3:43:25 PM: “build.command” failed
3:43:25 PM: ────────────────────────────────────────────────────────────────
3:43:25 PM:
3:43:25 PM: Error message
3:43:25 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
3:43:25 PM:
3:43:25 PM: Error location
3:43:25 PM: In Build command from Netlify app:
3:43:25 PM: npm run build
3:43:25 PM:
3:43:25 PM: Resolved config
3:43:25 PM: build:
3:43:25 PM: command: npm run build
3:43:25 PM: commandOrigin: ui
3:43:25 PM: publish: /opt/build/repo/dist
3:43:25 PM: publishOrigin: ui
3:43:27 PM: Failed during stage “building site”: Build script returned non-zero exit code: 2
3:43:27 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:43:27 PM: Failing build: Failed to build site
3:43:27 PM: Finished processing build request in 33.523s
Hey @dadu99 ,
This looks similar to Deploy timeout fresh vue project
There’s something broken with the latest Vue CLI or at least with how it works on Netlify. Please use Vite instead.