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

Error in data(): "ReferenceError: process is not defined" #50

Open
Andrei-Pozolotin opened this issue Aug 17, 2019 · 1 comment
Open

Comments

@Andrei-Pozolotin
Copy link

while trying to run inside https://jsfiddle.net/:

plugin assumes node.js context is present:
https://github.com/Kelin2025/vue-timers/blob/master/mixin.js#L32

vue.js:634 [Vue warn]: Error in data(): "ReferenceError: process is not defined"

(found in <Root>)
vue.js:1897 ReferenceError: process is not defined
    at normalizeConfig (mixin.js:33)
    at mixin.js:69
    at Array.reduce (<anonymous>)
    at normalizeOptions (mixin.js:66)
    at Vue.data (mixin.js:78)
    at Vue.mergedInstanceDataFn (vue.js:1240)
    at Vue.mergedInstanceDataFn (vue.js:1243)
    at getData (vue.js:4739)
    at initData (vue.js:4696)
    at initState (vue.js:4635)
vue.js:634 [Vue warn]: Error in mounted hook: "ReferenceError: process is not defined"

(found in <Root>)
vue.js:1897 ReferenceError: process is not defined
    at Object.start (mixin.js:91)
    at mixin.js:140
    at Array.forEach (<anonymous>)
    at Vue.mounted (mixin.js:138)
    at invokeWithErrorHandling (vue.js:1863)
    at callHook (vue.js:4214)
    at mountComponent (vue.js:4081)
    at Vue.$mount (vue.js:9038)
    at Vue.$mount (vue.js:11923)
    at Vue._init (vue.js:5006)
@masongzhi
Copy link
Contributor

your jsfiddle example was empty

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

2 participants