How to make vue.js work with hyperdev


#1

I cant get to make vue.js work.
I add the packaged and initialize it but I get this error trying to create a new constructor

ReferenceError: document is not defined at query (/app/src/node_modules/vue/dist/vue.common.js:1118:10)

Is it a limitation of the platform or am I doing something wrong?


#2

It sounds to me like vue.js is a frontend library. Try adding it to your index.html from a cdn link and calling it from client.js. HyperDev provides both a node backend and a browser frontend, not every js library will work in every environment.

Let us know if you have any further questions, thanks!