stepanzharychev / vue-ts-webpack Goto Github PK
View Code? Open in Web Editor NEWSample of Vue.js components usage with TypeScript and Webpack
Sample of Vue.js components usage with TypeScript and Webpack
Hi Stepan.
I came across an error.
{"os":"linux","arch":"x64"}
npm --version
5.6.0
node --version
v9.3.0
npm start
> [email protected] start vue-ts-webpack
> webpack-dev-server --hot --inline --history-api-fallback
Project is running at http://localhost:8001/
webpack output is served from /static/
404s will fallback to /index.html
Usage of ts-loader option `configFileName` is deprecated. Use `configFile` instead.
ts-loader: Using [email protected] and vue-ts-webpack/tsconfig.json
Hash: 81367d8287d371321804
Version: webpack 2.7.0
Time: 6835ms
Asset Size Chunks Chunk Names
dist/bundle.js 747 kB 0 [emitted] [big] main
dist/bundle.js.map 1.4 MB 0 [emitted] main
chunk {0} dist/bundle.js, dist/bundle.js.map (main) 714 kB [entry] [rendered]
[0] ./~/vue/dist/vue.runtime.esm.js 205 kB {0} [built]
[9] (webpack)/hot/emitter.js 74 bytes {0} [built]
[12] (webpack)-dev-server/client?http://localhost:8001 7.91 kB {0} [built]
[13] (webpack)/hot/dev-server.js 1.53 kB {0} [built]
[14] ./app/init.ts 300 bytes {0} [built]
[24] ./~/loglevel/lib/loglevel.js 7.9 kB {0} [built]
[25] ./~/punycode/punycode.js 14.7 kB {0} [built]
[33] ./~/url/url.js 22.8 kB {0} [built]
[37] (webpack)-dev-server/client/overlay.js 3.67 kB {0} [built]
[38] (webpack)-dev-server/client/socket.js 1.08 kB {0} [built]
[40] (webpack)-dev-server/~/strip-ansi/index.js 150 bytes {0} [built]
[42] (webpack)/hot/log-apply-result.js 998 bytes {0} [built]
[46] ./app/components/main/main.vue 1.75 kB {0} [built]
[51] (webpack)/hot nonrecursive ^\.\/log$ 160 bytes {0} [built]
[52] multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server ./app/init.ts 52 bytes {0} [built]
+ 38 hidden modules
ERROR in vue-ts-webpack/node_modules/vue-class-component/lib/declarations.d.ts
(6,33): error TS2702: 'Vue' only refers to a type, but is being used as a namespace here.
webpack: Failed to compile.
I've stumbled upon this project some time ago and found it great as a base for Vue-TS app. But the README.MD for it is too minimal. Could you add some more information describing what this project does and maybe a link to the original tutorial where you are describing overall setup?
Hi.
Can I write typescript in vue file directly?
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.