question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

_vm._ssrEscape is not a function

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

Bug report

Steps to reproduce

git clone https://github.com/f3ltron/vuepress-plugin-docgen

yarn

delete no-ssr from components/Functionnals/withtemplate.vue

yarn run docs:build 

What is expected?

it should build the component

What is actually happening?

actually got this error:

wait Rendering static HTML...
Rendering page: /Components/Functionnals/withtemplate.htmlerror Error rendering /Components/Functionnals/withtemplate.html: false
undefined
TypeError: _vm._ssrEscape is not a function
    at render (components/Functionnals/withtemplate.vue?21c3:1:46)
    at renderWithStyleInjection (node_modules/vue-loader/lib/runtime/componentNormalizer.js:78:0)
    at createFunctionalComponent (/Users/florent/workdir/vuepress/vuepress-plugin-docgen/node_modules/vue-server-renderer/build.dev.js:7944:30)
    at createComponent (/Users/florent/workdir/vuepress/vuepress-plugin-docgen/node_modules/vue-server-renderer/build.dev.js:8117:12)
    at resolve (/Users/florent/workdir/vuepress/vuepress-plugin-docgen/node_modules/vue-server-renderer/build.dev.js:8426:24)
error Command failed with exit code 1.

Other relevant information

I added no-ssr for working by reading THIS

  • [] My VuePress version is lower and euqal than 1.0.0-alpha.47:

    • VuePress version:
    • OS:
    • Node.js version:
    • Browser version:
    • Is this a global or local install?
    • Which package manager did you use for the install?
    • Does this issue occur when all plugins are disabled?
  • My VuePress version is higher than 1.0.0-alpha.47, the following is the output of npx vuepress info in my VuePress project:

System: OS: macOS 10.14.5 CPU: (12) x64 Intel® Core™ i7-8750H CPU @ 2.20GHz Binaries: Node: 10.15.1 - /usr/local/bin/node Yarn: 1.16.0 - ~/.npm-packages/bin/yarn npm: 6.9.0 - ~/.npm-packages/bin/npm Browsers: Chrome: 74.0.3729.169 Firefox: 67.0 Safari: 12.1.1 npmPackages: @vuepress/core: 1.0.0-alpha.48 @vuepress/theme-default: 1.0.0-alpha.48 vuepress: ^1.0.0-alpha.48 => 1.0.0-alpha.48 npmGlobalPackages: vuepress: Not Found

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
jsbaguettecommented, Jul 14, 2019

i will try let me two day to bacck on it

0reactions
kepi0809commented, Mar 31, 2021

Found the solution for my own problem: I needed to wrap the components that contain functional component(s) with <ClientOnly>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Laravel VueJS testing TypeError: _vm._ssrEscape is not a ...
I'm running Node 12.18.2. My test file contains import { mount } from '@vue/test-utils'; import Counter ...
Read more >
Laravel VueJS testing TypeError: _vm._ssrEscape is not a ...
Coding example for the question Laravel VueJS testing TypeError: _vm._ssrEscape is not a function-Vue.js.
Read more >
创建项目 (00e342e3) · Commits · 姚德海 / wsw-uni-app · GitLab
`render function or template not defined in component: ${. vm.$options.name || vm.$options._componentTag || 'anonymous'.
Read more >
TypeError (...) is not a function - Get Help - Vue Forum
[Vue warn]: Error in callback for watcher "changeKundeStore": "TypeError: vm.kundeinputstore is not a function" - TypeError: ...
Read more >
vue-server-renderer @ 2.6.9 .. 2.6.10 - Package Diff
+ getNow = function () { return performance.now(); };. + }. + }. /**. * Queue a kept-alive component that was activated during...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found