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

use reactivity api in node JS gives: ReferenceError: document is not defined #657

Closed
mesqueeb opened this issue Jan 26, 2020 · 1 comment

Comments

@mesqueeb
Copy link

Version

3.0.0-alpha.3

Reproduction link

https://github.com/vue-sync/core

Steps to reproduce

  1. npm i
  2. npm run test

What is expected?

the test should run

What is actually happening?

the test fails to run with a "1 uncaught exception".
Error:

Uncaught exception in test/registerPlugin.ts

node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js:7

ReferenceError: document is not defined

Object. (node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js:7:13)
Object. (node_modules/@vue/runtime-dom/index.js:6:20)


I'm trying to use Vue 3's reactivity api to make a reactive object without needing to rely on the DOM.
The test runs via node, I tried to make sure to use node v13.

@mesqueeb
Copy link
Author

@yyx990803 thanks so much!

@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant