Giter Site home page Giter Site logo

vue-cli-template's Issues

Cool things, but what about render data from DB?

Hey, cool repo's, but what you think about integrate backend datas — pass data from back databases (Mongo/Mysql/other) to vue components, such as jade/pug render options? And how it realize without compile to frontend bundle?

Webpack bundling missing

Hey guys...

I'm hyped to use this project as a template to make a service that renders .vue files as String.

I followed the instructions (easy... vue init and then npm install and then npm run start) but I got:

[project path]/src/scripts/start.js:1
(function (exports, require, module, __filename, __dirname) { const {Server} = require('..');
                                                                    ^
SyntaxError: Unexpected token {

Typical error when I got a JS file with ES6 syntax and tried to run it without passing throught Babel (webpack). And, indeed, I didn't see any Webpack output on the terminal.

In fact... I saw webpack on package.json as a dev dependency. But I didn't saw any webpack.config.js file.

I think we're supposed to assign vue-webpack object to the hypothetical file webpack.config.js.
Or am I missing something? 🤔

Which component to render based on route param

Hey guys... it's me again.. Hahaha

I've been trying to make Express route /templates/{id}. And depending on the id param I'll render a different component.

There's any way, using the project structure, you guys thought on how to route with this kind of mindset?

I'm a bit lost in this structure... 🤔

Use vue-router & vue-meta

Hi, I am new to Vue.js and am struggling to connect vue-router and vue-meta to this template. Can anyone please point me in the right direction?

The problem I am having is only SSR related: "I get a window is not defined" error.

Thanks!

Unexpected Identifier

@xpepermint I was trying to work with your template; however, after npm run start i got this error in cmd

 async listen () {
        ^^^^^^
SyntaxError: Unexpected identifier
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\projects\testProjects\sandboxes\vuess\src\index.js:1:80)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.