Tagged Questions
0
votes
1answer
19 views
Vuejs post does not find NodeJs Express server/action
I'm trying to send data using vue.js to my node.js server, but the browser console keeps showing me a 404: POST http://127.0.0.1:63342/myaction 404 (Not Found)
vue.js:
this.$http.post('http://127.0....
0
votes
1answer
20 views
VueResource Vue.http.get Response Status Code 0
im having this issue where i send a request to the API to retrieve all users, the login function is called(index.vue) when called it tries to go to api/users/all which in this case should return all ...
0
votes
2answers
39 views
How to run vue-cli build command when specified files modified?
I can build my js file with this command
vue build main.js --dist dist --prod --lib
It is ok but I want to do it automaticaly when I change js or vue files. I don't want to use browserify, webpack, ...
1
vote
1answer
24 views
Component causes 'npm run dev' to hang
I have bitten the bullet and switched over to a modular approach to my Vue.js, using vue-cli and Webpack. There's been a bit of a learning curve with restructuring my application into single file ...
0
votes
1answer
27 views
How to require webpack generate js file with requirejs?I use vue-cli
I make my project by vue-cli.
vue init webpack vue-demo
cd vue-demo
npm install
npm run dev
Now I want to devolop some components. And i want to use them in requirejs.
webpack config
entry: {
...
0
votes
0answers
42 views
vue-resource http request gives:' _.isArray is not a function
I'm trying to get an object from a server at localhost:3000. I can see the object when I go to the address in my browser.
My front end runs this function defined in my Vue instance's methods ...
0
votes
1answer
43 views
socket.on not working in client side
I'm studying nodejs + vuejs + socket.io
Testing sending message and reciving on server side and client side.
On server side is working, I'm recieving the console(message: text)
But, the console.log ...
2
votes
0answers
65 views
Odd output for console.log between node.js and chrome browser
I'm playing with node's crypt() and just wanted visual confirmation that the Diffie-Hillman shared secret between node ('Alice') and the Chrome client ('Bob') was matching up. I send the public keys ...
2
votes
0answers
63 views
Webpack: How to separate UI from business logic in Electron app?
I'm developing a desktop app on Electron + Vue 2 + Webpack 2 + Bootstrap 3. Currently, all JS code is bundled by webpack and is included in the HTML as a single file.
index.html
<body>
<...
0
votes
0answers
124 views
Vue.js 2 Authentication JWT
I am trying to make a Vue.js2 application using this boilerplate https://github.com/vuejs-templates/webpack
I am stuck on the Authentication process, using this library: https://github.com/websanova/...
1
vote
1answer
37 views
How to publish/use a node module in laravel 5?
I have my laravel application and I'm starting to use Vuejs. I'm new with this and maybe I'm missing some core concepts.
Anyway (for example) I'd like to use this component: A multiselect having a ...
0
votes
2answers
98 views
Vue.js Webpack Template in a Docker Container: How do I add Webpack-Dev-Server --watch-poll flag?
I am running the webpack / webpack-dev-server portion of the base Vue.js Webpack template (https://github.com/vuejs-templates/webpack/) inside of a docker container I created. The container also ...
0
votes
1answer
46 views
node vue require library for use in component
I am getting new to using vue.js with components a requiring libraries using NPM.
So far I use gulp Vueify to compile my core code along with .vue files into a bundle.js file. It works with my ...
1
vote
1answer
25 views
express not sending static directory
I'm trying to serve a vue.js single page app with a node.js server but I'm having an issue with some express middleware.
Basically I'm trying to serve two things right now. My index.html and a dist ...
0
votes
1answer
114 views
Is there a way to build vue.js components without using the npm server?
Put simply, I want to use vue.js's single file components inside of another project with its own web server and backend code. I want to "compile" my .vue files the way I would compile CoffeeScript ...
1
vote
2answers
91 views
How to run Vue cli with Webpack on live server?
Yesterday I bought a droplet from digital ocean, to start learning new stuff direct on a live server.
I started with Vue. I followed the Vue cli with webpack installation guide. All went well.
The ...
1
vote
2answers
62 views
webpack 2 exits with code 3221226505 when importing external css (in vue.js component)
I'm trying to use Google's Material Components for Web in my project.
The problem is that when I'm adding the import statement, webpack doesn't output anything but exits with code 3221226505, ...
0
votes
2answers
126 views
Three.js not rendering in Vue.js
I started off by doing vue init webpack my-project and I have three files that I'm concerned with: main.js, AudioPlayer.vue, and App.vue. I don't know why the three.js code is not rendering in the App....
1
vote
1answer
27 views
What are the downsides of installing Vuel.js with a script src link?
I am new to programming and I learned how to use laravel and vuejs (which now ship together in laravel 5.3). I'm only practicing Vuejs right now, and was wondering what is so wrong with installing ...
0
votes
0answers
80 views
Error with Gulp file: “The following tasks did not complete: other” on a Vue.js project
I'm working on a Vue.js project that uses Karma, Webpack, and AWS. Everything was working fine but suddenly I'm getting this error when I run "npm run build" after cloning the repo and doing "npm ...
0
votes
3answers
59 views
How to setup express route res.json(data) object and display the response in vue $HTTP call?
Actual data in the collection
Using express:
Mongoose model with mongodb collections called "comments"
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var Comment = new Schema({
...
0
votes
0answers
15 views
Wathchify output process info
I've setup watchify for vue and it's works fine, but I want to see process info - something like watchify process takes *.**s e.t.c. For each change.
Watchify in console just stay silent:
This is my ...
0
votes
1answer
37 views
Vue router: Gulp uglify / watch node error
Just starting with Vue router and following the getting started but having issues straight away.
Using the same code as the example:
const Home = { template: '<div>Home</div>' }
const ...
0
votes
2answers
80 views
vue.js - Implementing Auth0 example in my project gives me _vm.login is not a function(…)
I have to say first.. i'm VERY new to both VUE and Auth0 so my guess.. there are some logical error causing this, and is pretty easy to understand for a more experienced VUE developer.
i'm getting a :...
0
votes
1answer
92 views
How to get vueify running with Sails JS and Browserify?
I'd like to create a SPA (Single Page Application) with Sails JS (Node JS Framework) and Vue JS. Vue JS supports components and I would like to dynamically load them (.vue files). Vue JS recommends to ...
0
votes
0answers
24 views
Running gulp on project fails because it cannot find an existing file
I'm currently porting a fully working Windows project to an Ubuntu system. After doing the installation of apache/php/mysql/composer/nodejs/nmp I try to run the project. I got the directory where the ...
0
votes
1answer
420 views
How do I debug vue js application in VS Code?
I've created new vue.js application using vue init webpack my-test3.
In VS Code (v1.7.1), I am trying to debug this application and default launch.json has program set to:
"configurations": [
{
...
2
votes
1answer
244 views
VueJs 2, NodeJs and reload page
I have a question with VueJs and the refreshing page. When I refresh my VueJs app with specific URL (for example : /tag/1), an error occurs : "Uncaught SyntaxError: Unexpected token <".
My server ...
0
votes
1answer
43 views
How to access vm.$el properties with single-file components?
I'm trying to access the clientHeightproperty of a vue instance created by a single-file component, but it returns undefined. How can I do this?
<template lang='jade'>
article#article....
2
votes
1answer
147 views
Vuejs $emit doesn't fire on callback
In the following code:
export default {
props: ['note'],
methods: {
remove(){
NoteRepo.remove(this.note, (err) => {
if (err) {
...
1
vote
1answer
45 views
express can't get after posting
I'm writing a web application with Vue.js and Express and MongoDB. Express server has two routes which the Vue client will use: POST: /post; GET: /post; The first one is to publish a post, and ...
1
vote
0answers
606 views
How to structure a Vue 2.0 app for server-rendered lazy routes?
I attempted to modify vue-hackernews-2.0 to support lazy-loaded routes using Webpack's code-splitting feature as per instructions found at these links:
https://router.vuejs.org/en/advanced/lazy-...
0
votes
0answers
54 views
Issue with hitting direct link using Vue Router
http://forum.vuejs.org/t/issue-setting-up-router-for-heroku-with-html5-history/2145?u=allentong
I'm having issues with routing when I hit a direct link. Is there a way to resolve this?
Server.js
...
1
vote
2answers
208 views
Vue 2.0 setting up routes - Do not use 'new' for side effects
I am configuring a vue project. I used the webpack template. ( npm install init webpack ). I am getting an error in the terminal --
ERROR in ./src/main.js
✘ http://eslint.org/docs/rules/no-new Do ...
0
votes
1answer
271 views
Vue.js browserify Cannot find module
With almost every npm package that I'm trying to use with vue.js 1.0 I receive this error:
{ Error: Cannot find module '!!./../../../node_modules/css-loader/index.js!./../../../node_modules/vue-...
0
votes
0answers
142 views
nginx can't load css, js from webpack output
i use vue js webpack for development, when dev run smoothly, but unfortunately after npm run build (run in nginx) nginx can't load, look this:
x GET http://localhost/static/css/app....
0
votes
0answers
34 views
Forge: Restart NodeJS daemon after deploy
I've setup my first Laravel Forge site that runs a VueJS 2.0 server side rendered app.
I've setup quick deploy and a daemon that keeps it running, but on deploys it doesn't restart. The same app is ...
0
votes
1answer
123 views
Serving Vue.js Server Side Rendering on Node-server
I'm trying to get the Hackernews 2.0 demo up and running on my Digital Ocean droplet, but I fail.
npm run start spins up the server on :8080.
npm run build builds for production.
The defined build ...
0
votes
1answer
100 views
how to save a users session VueJS
I am trying to figure out how to save a Users session when they log out. e.g. multiple shopping carts, transactions, and even previous searches. I am pretty new to the whole backend language and I am ...
0
votes
1answer
104 views
Azure web app to searve vuejs app
I have a vuejs app using webpack, which can also be package into electron app.
The structure of the app is like the following:
https://github.com/kahwooi/vuetron
It can be run on webpack-dev-server....
0
votes
1answer
74 views
NPM Installation failed
I have downloaded latest version of nodejs for windows.
When I run command npm install it install some package and at last it gives me error
npm WARN optional Skipping failed optional dependency
...
0
votes
1answer
153 views
initialize firebase 3.4.0 in Vue.js App
I'm having some trouble connecting firebase 3.4.0 to my Vue.js App. I am relatively new to Vue.js, and there is very little documentation out there for connecting to firebase 3.0. Here is my main.js ...
0
votes
0answers
118 views
Babel causing Uncaught TypeError in transpiled ES5 Vue component code
Working on a small Node.js project that needs to send JSON objects over sockets. I discovered that JsonSocket (https://github.com/sebastianseilund/node-json-socket) served my needs and running the ...
2
votes
1answer
229 views
Access Vue from external files
I would like to define my routes in an external file for readability.
My main.js file is where I initiate my Vue app. Seen below:
import Vue from 'vue'
import VueRouter from 'vue-router'
import App ...
0
votes
1answer
187 views
How to Route in VueJS 2.0
I want to click a link on my "Baseball Hats" page called, "Yankees Hats" and be redirected to a new view, "Yankees Hat Page".
From here the user should be able to select different hat colors: "Blue", ...
1
vote
0answers
63 views
DEPS_RESOLVE_FAILED on module when building a web application with Brunch in ES6
I'm having an issue when building my web application using Brunch. My application depends on a module I've created and uploaded to NPM, and whenever I build it, I get:
DEPS_RESOLVE_FAILED of ...
0
votes
1answer
305 views
How to correctly create a custom socket method with Vue-Socket.io?
This a simple experiment with Vue-Socket.io.
Express is used to serve index.html locally.
The sockets are being handled by http://metinseylan.com:1923.
I've defined a custom socket inside of main....
2
votes
0answers
75 views
I can not authenticate the routes express with passport-facebook
Good afternoon people.
I'm having a few days ago trying to authenticate routes using express and passport-facebook but without success. And on the client I'm using VueJs.
If anyone can help me in this ...
-1
votes
1answer
431 views
event.path undefined with Firefox and vue.js
First I am using vue-js. and NodeJs
I have a problem with firefox:
I use event.path[n].id and with firefox I got an error "event.path undefined"
But It work fined in other browser.
Did you have ...
0
votes
1answer
329 views
Vue.js as ExpressJS view engine
I am looking for something like React for ExpressJS but working with Vue.js.
I have problem with passing data from database (mongoose) to view. As for now, I am using handlebars view engine to pass ...