-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
SSR Webpack Vue.extends throws: Property or method "_ssrNode" is not defined #7703
Comments
Do you solved this problem? I also meet this question. |
version 2.3.4 also has this problem, |
No, I didn't solve this. However, with bundle renderer it works: https://ssr.vuejs.org/en/bundle-renderer.html. I do think it would be nice if this was solved at some point, because the basic approach is more straightforward (and for my purposes it would have been sufficient). |
You are importing You need externalize Vue in your webpack config so that your bundle and the script are using the same copy of Vue. See https://ssr.vuejs.org/en/build-config.html |
Hi Evans You, am looking for a way to ask you one question?. You like a model to me in my career, you are my Justin Berbie, my Tony Stark... in my career. But How did you stay motivated to finish Vue.js? |
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
Move vue dependencies to dependencies instead of dev dependencies: Issue with ssr node not found: vuejs/vue#7703 (comment) update snapshots version bump 2.0.0
This solved it for me:
The error is a bit misleading (at least for me), but just be sure there is only one Vue instance and you do not bundle Vue in any way to your package. |
Version
2.5.13
Reproduction link
https://github.com/neoneo/vue-ssr-webpack-error
Steps to reproduce
yarn
yarn webpack
node render
For details see the readme in the linked repo.
What is expected?
Output to the console as follows:
<div id="app" data-server-rendered="true"><h1>Hello world</h1></div>
What is actually happening?
The following error:
I narrowed this case down to Vue.extend, but I actually want to use Typescript with vue-class-component.
The text was updated successfully, but these errors were encountered: