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

Algolia search throwing error on dev environment #2810

Open
1 task done
ligne13 opened this issue Mar 5, 2021 · 0 comments
Open
1 task done

Algolia search throwing error on dev environment #2810

ligne13 opened this issue Mar 5, 2021 · 0 comments

Comments

@ligne13
Copy link

ligne13 commented Mar 5, 2021

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

Add Algolia DocSearch config to config.js as told in https://vuepress.vuejs.org/theme/default-theme-config.html#algolia-search.
Run npm run dev.

What is expected?

This should not throw the error below !

What is actually happening?

Error in console:

[Vue warn]: Failed to mount component: template or render function not defined.

found in

---> <AlgoliaSearchBox>
       <Navbar> at node_modules/@vuepress/theme-default/components/Navbar.vue
         <Layout> at node_modules/@vuepress/theme-default/layouts/Layout.vue
           <GlobalLayout> at node_modules/@vuepress/core/lib/client/components/GlobalLayout.vue
             <Root>

Other relevant information

  • The error disappears when I build the project and test the search on my local environment. It only happens when running the npm run dev and open the project on http://localhost:8081/

  • Output of npx vuepress info in my VuePress project:

Environment Info:

System:
OS: macOS 11.2.2
CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
Binaries:
Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node
Yarn: yarn install v0.24.6
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.50s. - ~/.yarn/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.13.0/bin/npm
Browsers:
Chrome: 89.0.4389.72
Edge: Not Found
Firefox: 86.0
Safari: 14.0.3
npmPackages:
@vuepress/core: 1.8.2
@vuepress/theme-default: 1.8.2
vuepress: ^1.5.3 => 1.8.2
npmGlobalPackages:
vuepress: Not Found

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