Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlify build fails #42

Open
AtHisBest opened this issue Dec 9, 2021 · 0 comments
Open

Netlify build fails #42

AtHisBest opened this issue Dec 9, 2021 · 0 comments

Comments

@AtHisBest
Copy link

AtHisBest commented Dec 9, 2021

My Netlify build is failing bellow is the failed information, any idea what I am not doing wrong? looks like something with faq-accordion @gerasimvol

5:20:02 PM: Could not generate HTML for "/":
5:20:02 PM: ReferenceError: document is not defined
5:20:02 PM:     at addStyle (node_modules/vue-faq-accordion/dist/vue-faq-accordion.esm.js:262:0)
5:20:02 PM:     at assets/js/vendors~page--src--pages--index-vue.10463f7f.js:764:42
5:20:02 PM:     at a.__vue_inject_styles__ (node_modules/vue-faq-accordion/dist/vue-faq-accordion.esm.js:411:0)
5:20:02 PM:     at a.hook (node_modules/vue-faq-accordion/dist/vue-faq-accordion.esm.js:217:0)
5:20:02 PM:     at Rt (/opt/build/repo/node_modules/vue/dist/vue.runtime.common.prod.js:6:11201)
5:20:02 PM:     at Je (/opt/build/repo/node_modules/vue/dist/vue.runtime.common.prod.js:6:25232)
5:20:02 PM:     at a.e._init (/opt/build/repo/node_modules/vue/dist/vue.runtime.common.prod.js:6:32637)
5:20:02 PM:     at new a (/opt/build/repo/node_modules/vue/dist/vue.runtime.common.prod.js:6:30429)
5:20:02 PM:     at Wi (/opt/build/repo/node_modules/vue-server-renderer/build.prod.js:1:66558)
5:20:02 PM:     at oo (/opt/build/repo/node_modules/vue-server-renderer/build.prod.js:1:70788)
5:20:03 PM: error Command failed with exit code 1.
5:20:03 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
5:20:03 PM: ​
5:20:03 PM: ────────────────────────────────────────────────────────────────
5:20:03 PM:   "build.command" failed                                        
5:20:03 PM: ────────────────────────────────────────────────────────────────
5:20:03 PM: ​
5:20:03 PM:   Error message
5:20:03 PM:   Command failed with exit code 1: yarn build
5:20:03 PM: ​
5:20:03 PM:   Error location
5:20:03 PM:   In Build command from Netlify app:
5:20:03 PM:   yarn build
5:20:03 PM: ​
5:20:03 PM:   Resolved config
5:20:03 PM:   build:
5:20:03 PM:     command: yarn build
5:20:03 PM:     commandOrigin: ui
5:20:03 PM:     publish: /opt/build/repo/dist
5:20:03 PM:     publishOrigin: ui
5:20:03 PM: Caching artifacts
5:20:03 PM: Started saving node modules
5:20:03 PM: Finished saving node modules
5:20:03 PM: Started saving build plugins
5:20:03 PM: Finished saving build plugins
5:20:03 PM: Started saving yarn cache
5:20:07 PM: Finished saving yarn cache
5:20:07 PM: Started saving pip cache
5:20:07 PM: Finished saving pip cache
5:20:07 PM: Started saving emacs cask dependencies
5:20:07 PM: Finished saving emacs cask dependencies
5:20:07 PM: Started saving maven dependencies
5:20:07 PM: Finished saving maven dependencies
5:20:07 PM: Started saving boot dependencies
5:20:07 PM: Finished saving boot dependencies
5:20:07 PM: Started saving rust rustup cache
5:20:07 PM: Finished saving rust rustup cache
5:20:07 PM: Started saving go dependencies
5:20:07 PM: Finished saving go dependencies
5:20:09 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:20:09 PM: Creating deploy upload records
5:20:09 PM: Failing build: Failed to build site
5:20:09 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
5:20:09 PM: Finished processing build request in 1m26.615298958s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant