Git Product home page Git Product logo

vue-paper-dashboard-typescript's Introduction

vue-paper-dashboard-typescript

A Vue.js project with TypeScript support

This project was scaffolded using vue init cristijora/vue-paper-dashboard-cli command and added TypeScript support on top of it. By using --allowJs compiler option we didn't need to modify the original .js files.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

vue-paper-dashboard-typescript's People

Contributors

omidkrad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-paper-dashboard-typescript's Issues

not work when npm run dev

Warning: The 'no-unused-variable' rule requires type information.
Warning: The 'no-use-before-declare' rule requires type information.
ts-loader: Using [email protected] and C:\Users\Delari\Downloads\vue-paper-dashboard-typescript-master\vue-paper-dashboard-typescript-master\tsconfig.json
No valid rules have been specified for JavaScript files

ERROR Failed to compile with 8 errors 12:44:14

error in C:\Users\Delari\Downloads\vue-paper-dashboard-typescript-master\vue-paper-dashboard-typescript-master\node_modules\vue-router\types\router.d.ts

(4,35): error TS2709: Cannot use namespace 'Vue' as a type.

error in C:\Users\Delari\Downloads\vue-paper-dashboard-typescript-master\vue-paper-dashboard-typescript-master\node_modules\vue-router\types\router.d.ts

(13,43): error TS2709: Cannot use namespace 'Vue' as a type.

error in C:\Users\Delari\Downloads\vue-paper-dashboard-typescript-master\vue-paper-dashboard-typescript-master\node_modules\vue-router\types\router.d.ts

(19,8): error TS2709: Cannot use namespace 'Vue' as a type.

error in C:\Users\Delari\Downloads\vue-paper-dashboard-typescript-master\vue-paper-dashboard-typescript-master\node_modules\vue-router\types\router.d.ts

(93,25): error TS2709: Cannot use namespace 'Vue' as a type.

error in C:\Users\Delari\Downloads\vue-paper-dashboard-typescript-master\vue-paper-dashboard-typescript-master\node_modules\vue-router\types\vue.d.ts

(17,13): error TS2428: All declarations of 'ComponentOptions' must have identical type parameters.

error in C:\Users\Delari\Downloads\vue-paper-dashboard-typescript-master\vue-paper-dashboard-typescript-master\node_modules\vue-router\types\vue.d.ts

(17,40): error TS2709: Cannot use namespace 'Vue' as a type.

error in C:\Users\Delari\Downloads\vue-paper-dashboard-typescript-master\vue-paper-dashboard-typescript-master\node_modules\vue\types\options.d.ts

(67,18): error TS2428: All declarations of 'ComponentOptions' must have identical type parameters.

error in ./src/main.ts

(28,30): error TS2345: Argument of type '{ routes: ({ [x: string]: any; path: string; component: VueConstructor; redirect: string; ch...' is not assignable to parameter of type 'RouterOptions | undefined'.
Type '{ routes: ({ [x: string]: any; path: string; component: VueConstructor; redirect: string; ch...' is not assignable to type 'RouterOptions'.
Types of property 'routes' are incompatible.
Type '({ [x: string]: any; path: string; component: VueConstructor; redirect: string; children?: u...' is not assignable to type 'RouteConfig[] | undefined'.
Type '({ [x: string]: any; path: string; component: VueConstructor; redirect: string; children?: u...' is not assignable to type 'RouteConfig[]'.
Type '{ [x: string]: any; path: string; component: VueConstructor; redirect: string; children?: un...' is not assignable to type 'RouteConfig'.
Type '{ [x: string]: any; path: string; component: VueConstructor; redirect: string; children?: un...' is not assignable to type 'RouteConfig'.
Types of property 'component' are incompatible.
Type 'VueConstructor' is not assignable to type 'ComponentOptions<any, DefaultData, DefaultMethods, DefaultComputed, PropsDefinition<Rec...'.
Type 'VueConstructor' is not assignable to type 'AsyncComponentFactory<DefaultData, DefaultMethods, DefaultComputed, Record<string, ...'.
Type 'VueConstructor' provides no match for the signature '(): { component: AsyncComponentPromise<DefaultData, DefaultMethods, DefaultComputed, Record<string, any>>; loading?: VueConstructor | FunctionalComponentOptions<Record<string, any>, PropsDefinition<Record<string, any>>> | ComponentOptions<never, DefaultData, DefaultMethods, DefaultComputed, Record<string, any>, Record<string, any>> | EsModuleComponent | undefined; error?: VueConstructor | FunctionalComponentOptions<Record<string, any>, PropsDefinition<Record<string, any>>> | ComponentOptions<never, DefaultData, DefaultMethods, DefaultComputed, Record<string, any>, Record<string, any>> | EsModuleComponent | undefined; delay?: number | undefined; timeout?: number | undefined; }'.

Listening at http://localhost:8080

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.