Page MenuHomePhabricator

ReferenceError: open is not defined
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • cd documentation/frontend
  • npm run docs:build

What happens?:

The build completes but throws the following error:

trace
> vitepress build docs

vitepress v1.0.0-alpha.45
✓ building client + server bundles...
⠋ rendering pages...ReferenceError: open is not defined
    at setup (file:///Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/docs/.vitepress/.temp/demos_add-link-dialog.md.js:20:7)
    at _sfc_main$2.setup (file:///Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/docs/.vitepress/.temp/demos_add-link-dialog.md.js:267:25)
    at callWithErrorHandling (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:119:22)
    at setupStatefulComponent (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5789:29)
    at setupComponent (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5770:11)
    at renderComponentVNode (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:169:17)
    at ssrRenderComponent (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:605:12)
    at _sfc_ssrRender (file:///Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/docs/.vitepress/.temp/demos_add-link-dialog.md.js:301:9)
    at renderComponentSubTree (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:250:13)
    at renderComponentVNode (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:185:16)
ReferenceError: open is not defined
    at setup (file:///Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/docs/.vitepress/.temp/OnboardingStep.8309faec.js:78:7)
    at _sfc_main$1.setup (file:///Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/docs/.vitepress/.temp/OnboardingStep.8309faec.js:351:25)
    at callWithErrorHandling (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:119:22)
    at setupStatefulComponent (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5789:29)
    at setupComponent (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5770:11)
    at renderComponentVNode (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:169:17)
    at ssrRenderComponent (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:605:12)
    at _sfc_ssrRender$1 (file:///Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/docs/.vitepress/.temp/demos_add-link-dialog.md.js:27:9)
    at renderComponentSubTree (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:250:13)
    at renderComponentVNode (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:185:16)
ReferenceError: open is not defined
    at setup (file:///Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/docs/.vitepress/.temp/OnboardingStep.8309faec.js:78:7)
    at _sfc_main$1.setup (file:///Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/docs/.vitepress/.temp/OnboardingStep.8309faec.js:351:25)
    at callWithErrorHandling (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:119:22)
    at setupStatefulComponent (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5789:29)
    at setupComponent (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5770:11)
    at renderComponentVNode (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:169:17)
    at ssrRenderComponent (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:605:12)
    at _sfc_ssrRender (file:///Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/docs/.vitepress/.temp/demos_onboarding-dialog.md.js:41:9)
    at renderComponentSubTree (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:250:13)
    at renderComponentVNode (/Users/sergio/src/mediawiki/w/extensions/GrowthExperiments/documentation/frontend/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:185:16)
✓ rendering pages...
build complete in 4.68s.

What should have happened instead?:

The build should complete without errors

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Some jobs with the described error:

Event Timeline

Change 904229 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[mediawiki/extensions/GrowthExperiments@master] Frontend documentation: refactor v-model usage in dialogs

https://gerrit.wikimedia.org/r/904229

Change 904229 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Frontend documentation: refactor v-model usage in dialogs

https://gerrit.wikimedia.org/r/904229

  NODES
INTERN 1
Note 3
Project 4
USERS 30