lakb248 / vue-component-generator Goto Github PK
View Code? Open in Web Editor NEWA generator for vue component
A generator for vue component
Hi, I used your generator and updated dependencies to Vue2.
However when I run npm run dev
I had to change the port from 8888
to 8877
as it said port already in use
even on a fresh system restart (Mac OSX Sierra).
Now when I run npm run dev
I get the console (karma?) window, and I can go to localhost:8877
and I see the title Vue component
but the component is not rendered :(
My <body>
is essentially empty, even though I can see the following in the code:
<body>
<div id="container">
<circle-menu></circle-menu>
</div>
<script type="text/javascript" src="/build/build.js"></script>
</body>
Why is the container removed from the DOM I wonder!? Everything looks fine and I don't see any conflicts with respect to Vue2 in the code, not that I'm an expert.
https://github.com/kristianmandrup/circle-menu
Any help greatly appreciated!
vcg component-demo -n -p 8888
Directory /projects/vuejs/component-demo create success!
Download from https://github.com/lakb248/vue-component-seed.git#vue2...
Download complete!
Generate src/index.js success!
Generate src/vue-component.vue success!
Generate test/vue-component.spec.js success!
Generate index.html success!
Generate index.js success!
Generate package.json success!
Generate webpack.base.config.js success!
Generate webpack.prod.config.js success!
Generate README.md success!
fs.js:141
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at makeCallback (fs.js:141:11)
at Object.rename (fs.js:578:14)
at /usr/local/lib/node_modules/vue-component-generator/index.js:60:21
at Array.forEach ()
at GithubDownloader. (/usr/local/lib/node_modules/vue-component-generator/index.js:58:24)
at GithubDownloader.emit (events.js:182:13)
at /usr/local/lib/node_modules/vue-component-generator/node_modules/github-download/lib/github-download.js:134:19
at next (/usr/local/lib/node_modules/vue-component-generator/node_modules/rimraf/rimraf.js:75:7)
at CB (/usr/local/lib/node_modules/vue-component-generator/node_modules/rimraf/rimraf.js:111:9)
at FSReqWrap.oncomplete (fs.js:145:20)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.