1 year ago

npm run watch - exports.push is not a function

Posted 1 year 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.