msassa
87
0
Vue

npm run watch - exports.push is not a function

Posted 10 months ago by msassa

It is happening to me that when I run npm run watch, the first compilation works fine, and then, when it detects a change in some vue file, and compiles automatically, in the browser I get these errors:

[Vue warn]: Error in beforeCreate hook: "TypeError: exports.push is not a function"
-----------------
TypeError: exports.push is not a function

and that component no longer works. I have to stop the watch and run it again. Is impossible to work.

Any idea?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.