GithubHelp home page GithubHelp logo

vuetifyjs / vue-cli-plugins Goto Github PK

View Code? Open in Web Editor NEW
426.0 25.0 113.0 2.83 MB

๐Ÿ”Œ A collection of Vuetify plugins for Vue CLI

Home Page: https://vuetifyjs.com/en/getting-started/quick-start#vue-cli-3

License: Other

JavaScript 58.00% Vue 20.89% CSS 0.03% Sass 5.90% SCSS 12.99% HTML 0.95% TypeScript 1.23%
vuetify vuetify-plugin vue-cli-3 vuetify-plugins presets vue-cli

vue-cli-plugins's Introduction

Vuetify CLI Plugins lerna

A collection of Vuetify plugins for Vue CLI

Available Packages

Plugins

Project Version Description
@vuetify/cli-plugin-utils Version A collection of helper utilities for creating Vue CLI plugins
vue-cli-plugin-vuetify-cli Version A Vue CLI plugin for scaffolding Vue applications
vue-cli-plugin-vuetify-essentials Version A supplementary Vue CLI plugin used by vue-cli-preset-vuetify
vue-cli-plugin-vuetify-storybook Version A Vue CLI plugin for using Storybook w/ Vuetify
vue-cli-plugin-vuetify Version A Vue CLI plugin for installing and configuring Vuetify

Presets

Preset Version Study
vue-cli-plugin-vuetify-preset-basil Version Basil Material Study
vue-cli-plugin-vuetify-preset-crane Version Crane Material Study
vue-cli-plugin-vuetify-preset-fortnightly Version Fortnightly Material Study
vue-cli-plugin-vuetify-preset-owl Version Owl Material Study
vue-cli-plugin-vuetify-preset-rally Version Rally Material Study
vue-cli-plugin-vuetify-preset-reply Version Reply Material Study
vue-cli-plugin-vuetify-preset-shrine Version Shrine Material Study

๐Ÿ”ฎ About Presets

Vuetify Presets are an in progress feature that will be enhanced as Vuetify gains new functionality in the future, such as global component defaults. They are our best-guess implementation of the official Material Design Studies. The studies are more visual than they are technical and in many cases must have aspects of their specification inferred. There are also cases in which part of a study will not be supported:

You can find more information about presets in the Vuetify preset documentation.

๐Ÿ“‘ License

MIT

Copyright (c) 2016-present Vuetify, LLC

vue-cli-plugins's People

Contributors

adambullmer avatar arrtchiu avatar cairin avatar ce7elem avatar ddeniz avatar dependabot[bot] avatar droet avatar elijahkotyluk avatar jacekkarczmarczyk avatar jefrydco avatar johnleider avatar kaelwd avatar khawarizmus avatar linusborg avatar majesticpotatoe avatar maurop123 avatar merceyz avatar mrjackwills avatar nekosaur avatar nesu avatar nklayman avatar ntadic avatar paul-soporan avatar peluprvi avatar pignatov avatar renato66 avatar singlebyted avatar taai avatar w3cj avatar wernerm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-cli-plugins's Issues

Move Vuetify imports into own file

Currently, this plugin uses string concatenation to build some code for importing Vuetify and then inserts that code into main.js

In addition to this being a bit brittle, when using the a la carte option, that means some really large chunk of code will pollute main.js.

I would instead propose to create a separate file, e.g. in src/plugins/vuetify.js, and use EJS to dynamically create the necessary code in there.

Then in main.js, we only have to add one line:

import './src/plugins/vuetify'

Blank page on ie 11

It works on Vivaldi, but I get a blank page on IE 11. No errors in the javascript console
edit : here what I did :
vue create my-app (Router, Unit testing mocha, E2E Cypress,)
cd my-app
npm i -D vue-cli-plugin-vuetify
vue invoke vuetify
npm run serve
edit 2: I did not know I had to refresh the page with the console open in ie, sorry.
Here is the error :
function createRange(length) {
return [].concat(_toConsumableArray(Array.from({ length: length }, function (v, k) {
return k;
})));
}
I guess it has to do with babel configuration.

`vue add vuetify` clobbers App.vue, without warning

vue add vuetify will clobber existing App.vue, without warning.

Not the end of the world, especially if you are using source control/backups as the readme directs you to, but still, not the best behavior (imagine if installing dropbox clobbered your Documents folder).

Suggestion on how to address:
A) Include warnings if intending to clobber/overwrite existing files
This is decidedly a courtesy, one that exists in some places and not in others, e.g. rm -rf / won't necessarily warn, but many applications will extend that courtesy.

B) Copy/move any files intending to overwrite

C) Default to recommending npm add vuetify in readme and on the Vuetify quickstart page.
The behavior of vue add vuetify is bit of misnomer (vue add vuetify is closer to replace or reconfigure behavior).

Issue with template created by the plugin

This is probably minor, but I noticed it right away. I just created a new Vue app, added the Vuetify plugin, and let it update my default components with it's sample code. On initial load, you get this:

image

If you click the hamburger menu on the right to open the panel, then click "Switch drawer", you get this:

image

If you then dismiss the panel, you get this:

image

Note the header is now partially hidden behind the initial left panel. At that point, there doesn't seem to be a way to fix it.

Running in an existing project deletes src/components folder

Using these choices:

? Allow Vuetify to replace App.vue and HelloWorld.vue? No
? Use custom theme? No
? Use a-la-carte components? No

Installing this plugin deleted the src/components folder in my existing project, which would have made me pretty sad if I wasn't using Git.

No such file or directory, open './public/index.html'

If I'm trying to add vuetify with the command vue add vuetify I'm getting the following error:

$ vue add vuetify

๐Ÿ“ฆ  Installing vue-cli-plugin-vuetify...

+ [email protected]
added 1 package from 1 contributor and audited 11862 packages in 6.828s
found 0 vulnerabilities

โœ”  Successfully installed plugin: vue-cli-plugin-vuetify

? Choose a preset: Default (recommended)

๐Ÿš€  Invoking generator for vue-cli-plugin-vuetify...
๐Ÿ“ฆ  Installing additional dependencies...

added 11 packages from 49 contributors and audited 11898 packages in 8.375s
found 0 vulnerabilities

โ ‹  Running completion hooks... ERROR  Error: ENOENT: no such file or directory, open '<PROJECT PATH>/public/index.html'
Error: ENOENT: no such file or directory, open '<PROJECT PATH>/public/index.html'
    at Object.openSync (fs.js:451:3)
    at Object.writeFileSync (fs.js:1213:35)
    at Object.updateFile (<PROJECT PATH>/node_modules/vue-cli-plugin-vuetify/generator/tools/helpers.js:43:6)
    at Object.addLinks (<PROJECT PATH>/node_modules/vue-cli-plugin-vuetify/generator/tools/fonts.js:59:11)
    at api.onCreateComplete (<PROJECT PATH>/node_modules/vue-cli-plugin-vuetify/generator/index.js:34:33)
    at runGenerator (/usr/local/lib/node_modules/@vue/cli/lib/invoke.js:143:13)
    at process.internalTickCallback (internal/process/next_tick.js:77:7)

I don't have a public folder in my project folder. I don't know if there changes something in vue (I'm just started with vue). If I'm creating the file public/index.html and run the command again, there will be two lines added into the file:

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons">

I'm running on vue 2.5.17.

Unresolved module error when using a pre-made template

I decided to add Vuetify to my newly scaffolded project (using vue init webpack), but ran into an error. Here's the full output:

$ vue add vuetify

๐Ÿ“ฆ  Installing vue-cli-plugin-vuetify...

+ [email protected]
updated 1 package and audited 33078 packages in 21.679s
found 0 vulnerabilities

โœ”  Successfully installed plugin: vue-cli-plugin-vuetify

? Use a pre-made template? (will replace App.vue and HelloWorld.vue) Yes
? Use custom theme? No
? Use a-la-carte components? Yes
? Use babel/polyfill? No

๐Ÿš€  Invoking generator for vue-cli-plugin-vuetify...
 ERROR  Error: Cannot find module '@vue/cli-service/generator/template/src/components/HelloWorld.vue' from '.../node_modules/vue-cli-plugin-vuetify/generator/templates/hw/src/components'
Error: Cannot find module '@vue/cli-service/generator/template/src/components/HelloWorld.vue' from '.../node_modules/vue-cli-plugin-vuetify/generator/templates/hw/src/components'
    at Function.module.exports [as sync] (/usr/local/lib/node_modules/@vue/cli/node_modules/resolve/lib/sync.js:43:15)
    at renderFile (/usr/local/lib/node_modules/@vue/cli/lib/GeneratorAPI.js:321:17)
    at _injectFileMiddleware (/usr/local/lib/node_modules/@vue/cli/lib/GeneratorAPI.js:183:27)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

The problem does not arise when I don't add the pre-made template.

Module build failure after adding plugin (Stylus related?)

I was setting up a new project from a template repo I've been using for the past year, notably with style-resources-loader set up (not 100% sure if relevant). After running npm install, vue add vuetify, and npm run serve, I'm met with a build failure and many Stylus-related errors:

Module build failed (from ./node_modules/stylus-loader/index.js):
ParseError: C:\Development\dashboard\node_modules\vuetify\src\stylus\components\_toolbar.styl:87:12
   83|     align-items: center
   84|     display: flex
   85|     padding: 0 $grid-gutters.xl
   86|
   87|     @media $display-breakpoints.sm-and-down
------------------^
   88|       padding: 0 $grid-gutters.lg
   89|
   90|     .v-btn--icon

expected "indent", got "media"

    at Parser.error (C:\Development\dashboard\node_modules\stylus\lib\parser.js:259:11)
    at Parser.expect (C:\Development\dashboard\node_modules\stylus\lib\parser.js:287:12)
    at Parser.block (C:\Development\dashboard\node_modules\stylus\lib\parser.js:845:12)
    at Parser.selector (C:\Development\dashboard\node_modules\stylus\lib\parser.js:1555:24)
    at Parser.ident (C:\Development\dashboard\node_modules\stylus\lib\parser.js:1446:25)
    at Parser.stmt (C:\Development\dashboard\node_modules\stylus\lib\parser.js:778:26)
    at Parser.statement (C:\Development\dashboard\node_modules\stylus\lib\parser.js:685:21)
    at Parser.parse (C:\Development\dashboard\node_modules\stylus\lib\parser.js:236:25)
    at Renderer.render (C:\Development\dashboard\node_modules\stylus\lib\renderer.js:80:22)
    at C:\Development\dashboard\node_modules\stylus-loader\index.js:167:12
    at tryCatchReject (C:\Development\dashboard\node_modules\when\lib\makePromise.js:840:30)
    at runContinuation1 (C:\Development\dashboard\node_modules\when\lib\makePromise.js:799:4)
    at Fulfilled.when (C:\Development\dashboard\node_modules\when\lib\makePromise.js:590:4)
    at Pending.run (C:\Development\dashboard\node_modules\when\lib\makePromise.js:481:13)
    at Scheduler._drain (C:\Development\dashboard\node_modules\when\lib\Scheduler.js:62:19)
    at Scheduler.drain (C:\Development\dashboard\node_modules\when\lib\Scheduler.js:27:9)

 @ ./node_modules/vuetify/src/stylus/components/_toolbar.styl 4:14-273 14:3-18:5 15:22-281
 @ ./node_modules/vuetify/lib/components/VToolbar/VToolbar.js
 @ ./node_modules/vuetify/lib/components/VToolbar/index.js
 @ ./node_modules/vuetify/lib/components/index.js
 @ ./node_modules/vuetify/lib/index.js
 @ ./src/App.vue
 @ ./src/main.ts
 @ multi (webpack)-dev-server/client?http://192.168.100.18:8080/sockjs-node (webpack)/hot/dev-server.js
./src/main.ts

 error  in ./node_modules/vuetify/src/stylus/components/_tooltips.styl

Module build failed (from ./node_modules/stylus-loader/index.js):
ParseError: C:\Development\dashboard\node_modules\vuetify\src\stylus\components\_tooltips.styl:50:1
   46|
   47|   @media $display-breakpoints.sm-and-down
   48|     .v-tooltip__content
   49|       padding: 10px 16px
   50|
-------^

expected "indent", got "."

    at Parser.error (C:\Development\dashboard\node_modules\stylus\lib\parser.js:259:11)
    at Parser.expect (C:\Development\dashboard\node_modules\stylus\lib\parser.js:287:12)
    at Parser.block (C:\Development\dashboard\node_modules\stylus\lib\parser.js:845:12)
    at Parser.media (C:\Development\dashboard\node_modules\stylus\lib\parser.js:1151:24)
    at Parser.stmt (C:\Development\dashboard\node_modules\stylus\lib\parser.js:778:26)
    at Parser.statement (C:\Development\dashboard\node_modules\stylus\lib\parser.js:685:21)
    at Parser.parse (C:\Development\dashboard\node_modules\stylus\lib\parser.js:236:25)
    at Renderer.render (C:\Development\dashboard\node_modules\stylus\lib\renderer.js:80:22)
    at C:\Development\dashboard\node_modules\stylus-loader\index.js:167:12
    at tryCatchReject (C:\Development\dashboard\node_modules\when\lib\makePromise.js:840:30)
    at runContinuation1 (C:\Development\dashboard\node_modules\when\lib\makePromise.js:799:4)
    at Fulfilled.when (C:\Development\dashboard\node_modules\when\lib\makePromise.js:590:4)
    at Pending.run (C:\Development\dashboard\node_modules\when\lib\makePromise.js:481:13)
    at Scheduler._drain (C:\Development\dashboard\node_modules\when\lib\Scheduler.js:62:19)
    at Scheduler.drain (C:\Development\dashboard\node_modules\when\lib\Scheduler.js:27:9)
    at process._tickCallback (internal/process/next_tick.js:176:11)

 @ ./node_modules/vuetify/src/stylus/components/_tooltips.styl 4:14-274 14:3-18:5 15:22-282
 @ ./node_modules/vuetify/lib/components/VTooltip/VTooltip.js
 @ ./node_modules/vuetify/lib/components/VTooltip/index.js
 @ ./node_modules/vuetify/lib/components/index.js
 @ ./node_modules/vuetify/lib/index.js
 @ ./src/App.vue
 @ ./src/main.ts
 @ multi (webpack)-dev-server/client?http://192.168.100.18:8080/sockjs-node (webpack)/hot/dev-server.js
./src/main.ts

 error  in ./node_modules/vuetify/src/stylus/components/_treeview.styl

Module build failed (from ./node_modules/stylus-loader/index.js):
ParseError: C:\Development\dashboard\node_modules\vuetify\src\stylus\components\_treeview.styl:114:1
   110|         animation: progress-circular-rotate
1s linear infinite
   111|
   112|     &__children
   113|       transition: all $treeview-transition
   114|
--------^

expected "indent", got "eos"

    at Parser.error (C:\Development\dashboard\node_modules\stylus\lib\parser.js:259:11)
    at Parser.expect (C:\Development\dashboard\node_modules\stylus\lib\parser.js:287:12)
    at Parser.block (C:\Development\dashboard\node_modules\stylus\lib\parser.js:845:12)
    at Parser.selector (C:\Development\dashboard\node_modules\stylus\lib\parser.js:1555:24)
    at Parser.ident (C:\Development\dashboard\node_modules\stylus\lib\parser.js:1446:25)
    at Parser.stmt (C:\Development\dashboard\node_modules\stylus\lib\parser.js:778:26)
    at Parser.statement (C:\Development\dashboard\node_modules\stylus\lib\parser.js:685:21)
    at Parser.parse (C:\Development\dashboard\node_modules\stylus\lib\parser.js:236:25)
    at Renderer.render (C:\Development\dashboard\node_modules\stylus\lib\renderer.js:80:22)
    at C:\Development\dashboard\node_modules\stylus-loader\index.js:167:12
    at tryCatchReject (C:\Development\dashboard\node_modules\when\lib\makePromise.js:840:30)
    at runContinuation1 (C:\Development\dashboard\node_modules\when\lib\makePromise.js:799:4)
    at Fulfilled.when (C:\Development\dashboard\node_modules\when\lib\makePromise.js:590:4)
    at Pending.run (C:\Development\dashboard\node_modules\when\lib\makePromise.js:481:13)
    at Scheduler._drain (C:\Development\dashboard\node_modules\when\lib\Scheduler.js:62:19)
    at Scheduler.drain (C:\Development\dashboard\node_modules\when\lib\Scheduler.js:27:9)

 @ ./node_modules/vuetify/src/stylus/components/_treeview.styl 4:14-274 14:3-18:5 15:22-282
 @ ./node_modules/vuetify/lib/components/VTreeview/VTreeview.js
 @ ./node_modules/vuetify/lib/components/VTreeview/index.js
 @ ./node_modules/vuetify/lib/components/index.js
 @ ./node_modules/vuetify/lib/index.js
 @ ./src/App.vue
 @ ./src/main.ts
 @ multi (webpack)-dev-server/client?http://192.168.100.18:8080/sockjs-node (webpack)/hot/dev-server.js
./src/main.ts

Replication:

  • git clone -b vuetify-setup https://github.com/salvadornico/dashboard.git
  • npm install
  • npm run serve

Any ideas on what could be going on?

Plugin includes severely outdated materialdesign font

Reproduction

> vue add vuetify

? Choose a preset: Configure (advanced)
? Use a pre-made template? (will replace App.vue and HelloWorld.vue) Yes
? Use custom theme? No
? Use custom properties (CSS variables)? No
? Select icon font Material Icons
? Use fonts as a dependency (for Electron or offline)? Yes
? Use a-la-carte components? Yes
? Select locale English

In the Use fonts as a dependency (for Electron or offline) step, the plugin will include https://www.npmjs.com/package/material-design-icons-iconfont , which is severely outdated and does not seem actively maintained (https://github.com/jossef/material-design-icons-iconfont/issues). It should include a repository that is using the latest font version (https://fonts.googleapis.com/icon?family=Material+Icons), or remove the option altogether, because there are a lot of ligatures missing in the font file that is included.

template string bug when running eslint - missing variable definition ?

I found this linting error when I added vuetify as a plugin:

error: Unexpected template string expression (no-template-curly-in-string) at babel.config.js:15:22:
13 | {
14 | vuetify: {

15 | transform: 'vuetify/es5/components/${member}',
| ^
16 | preventFullImport: true,
17 | },
18 | },
should I be ignoring the babel.config.js

johnleider - Today at 2:24 PM
oh um, that seems like a bug
looks like https://github.com/vuetifyjs/vue-cli-plugin-vuetify/blob/dev/generator/index.js#L126 needs to be updated

webpack not picking up dependencies for vuetify tags

I have a small project, latest vue-cli and vuetify plugin.

In my template, if i do "<img src="./assets/logo.png"/> web pack will correctly resolve the item.

If i do <v-img src="./assets/logo.png"/> then it doesn't work and vuetify complains at run time that it could not load the image.

Any ideas ?

[Bug Report] Material Icons can't be loaded in bundled electron projects

Versions and Environment

Vuetify: 1.1.12
Vue: 2.5.17
Browsers: Other
OS: Linux x86_64

Steps to reproduce

On Linux:

vue create test
cd test
vue add electron-builder
vue add vuetify
yarn serve:electron # Material icons work
yarn build:electron
./dist_electron/test-0.1.0-x86_64.AppImage # Material icons don't work

Expected Behavior

Font files should be properly placed and loaded in bundled electron projects.

Actual Behavior

The icon font files are placed in dist_electron/. The CSS files are placed in dist_electon/css but the icons get referenced with url(blablabla.ttf) etc. so that electron searches for the font files in the css directory.

Wrong path for app stylus file

@nekosaur On a fresh installation, the path of app.styl is wrong. Compilation then returns the following error:

This relative module was not found:
* ../node_modules/vuetify/src/stylus/app.styl in ./src/plugins/vuetify.js

Path must be changed to '../../node_modules/vuetify/src/stylus/app.styl' in /generator/templates/default/src/plugins/vuetify.js file.

[Bug Report] 'yarn serve' crashes on syntax error in pug templates

Versions and Environment

Vuetify: 1.4.2
Vue: 2.5.22
Browsers: Chrome 71.0.3578.98
OS: Mac OS 10.14.2

Steps to reproduce

  1. checkout git repo https://github.com/jn73/vuetify_pug_bug
  2. From root run 'yarn serve'
  3. open 'http://localhost:8080/' => the pug template in src/components/HelloWorld.vue is rendered ok
  4. edit src/components/HelloWorld.vue (add a single '(' after the div for example) to force a syntax error

Expected Behavior

Expected an error message in the browser "Failed to compile." and a stack trace.
After fixing the error the page should re-render OK

Actual Behavior

Nothing happens in the browser. In the terminal the 'yarn serve' displays a stack trace and stops working (efter fixing the pug template it won't recover - yarn needs to be restarted):

10% building 0/1 modules 1 active ...jtt/janne/src/components/HelloWorld.vue(node:21037) UnhandledPromiseRejectionWarning: Error: Pug:4:1
2| div(
3| | pug

4|
-------^

The end of the string reached with no closing bracket ) found.
at makeError (/private/tmp/jtt/janne/node_modules/pug-error/index.js:32:13)
at Lexer.error (/private/tmp/jtt/janne/node_modules/pug-lexer/index.js:59:15)
at Lexer.bracketExpression (/private/tmp/jtt/janne/node_modules/pug-lexer/index.js:260:14)
at Lexer.attrs (/private/tmp/jtt/janne/node_modules/pug-lexer/index.js:1270:24)
at Lexer.callLexerFunction (/private/tmp/jtt/janne/node_modules/pug-lexer/index.js:1456:23)
at Lexer.advance (/private/tmp/jtt/janne/node_modules/pug-lexer/index.js:1493:15)
at Lexer.callLexerFunction (/private/tmp/jtt/janne/node_modules/pug-lexer/index.js:1456:23)
at Lexer.getTokens (/private/tmp/jtt/janne/node_modules/pug-lexer/index.js:1512:12)
at lex (/private/tmp/jtt/janne/node_modules/pug-lexer/index.js:12:42)
at Object.lex (/private/tmp/jtt/janne/node_modules/pug/lib/index.js:99:27)
at Function.loadString [as string] (/private/tmp/jtt/janne/node_modules/pug-load/index.js:44:24)
at compileBody (/private/tmp/jtt/janne/node_modules/pug/lib/index.js:86:18)
at Object.exports.compile (/private/tmp/jtt/janne/node_modules/pug/lib/index.js:242:16)
at Object.module.exports (/private/tmp/jtt/janne/node_modules/vuetify-loader/lib/loader.js:43:42)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
(node:21037) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:21037) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Reproduction Link

https://github.com/jn73/vuetify_pug_bug

Issue related to 'useBuiltIns' options.

I created a vue project with vue create my-app and added vue add vuetify. But i am facing issue related to useBuiltIns options with error

BABEL] /src/main.js: The 'useBuiltIns' option has been removed. The @babel/runtime module now uses builtins by default. (While processing: "base$0$7")

I have added the codesandbox here.

https://codesandbox.io/s/zxj5pkwzzl

Please help with this issue.

Vuetify does not respect TypeScript in the project

When adding vuetify using vue add vuetify, the components are added in standards ES6 format regardless of the language used by the project. I create a new project (with vue create) to use TypeScript.
As a result, vuetify components do not get linted with yarn lint and throw errors on build.

[Bug Report] Typescript 'vue add vuetify' creates non-functional project

Ubuntu 18.04
@vue/cli 3.0.4

โžœ vue create v

Vue CLI v3.0.4
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, TS, PWA, CSS Pre-processors, Linter, Unit, E2E
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript for auto-detected polyfills? Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Stylus
? Pick a linter / formatter config: TSLint
? Pick additional lint features: Lint on save
? Pick a unit testing solution: Jest
? Pick a E2E testing solution: Cypress
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In package.json
? Save this as a preset for future projects? Yes
? Save preset as: plugin


Vue CLI v3.0.4
โœจ  Creating project in /home/amritk/apps/pulls/v.
๐Ÿ—ƒ  Initializing git repository...
โš™  Installing CLI plugins. This might take a while...

yarn install v1.10.1
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...

success Saved lockfile.
Done in 8.01s.
๐Ÿš€  Invoking generators...
๐Ÿ“ฆ  Installing additional dependencies...

yarn install v1.10.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Saved lockfile.
Done in 3.76s.
โš“  Running completion hooks...

๐Ÿ“„  Generating README.md...

๐ŸŽ‰  Successfully created project v.
๐Ÿ‘‰  Get started with the following commands:

 $ cd v
 $ yarn serve

โžœ cd v
โžœ vue add vuetify

๐Ÿ“ฆ  Installing vue-cli-plugin-vuetify...

yarn add v1.10.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Saved 1 new dependency.
info Direct dependencies
โ””โ”€ [email protected]
info All dependencies
โ””โ”€ [email protected]
Done in 0.25s.
โœ”  Successfully installed plugin: vue-cli-plugin-vuetify

? Use a pre-made template? (will replace App.vue and HelloWorld.vue) Yes
? Use custom theme? No
? Use custom properties (CSS variables)? No
? Select icon font md
? Use fonts as a dependency (for Electron or offline)? No
? Use a-la-carte components? Yes
? Use babel/polyfill? Yes
? Select locale en

๐Ÿš€  Invoking generator for vue-cli-plugin-vuetify...
๐Ÿ“ฆ  Installing additional dependencies...

yarn install v1.10.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 3.00s.
โš“  Running completion hooks...

โœ”  Successfully invoked generator for plugin: vue-cli-plugin-vuetify
   The following files have been updated / added:

     .browserslistrc
     src/plugins/vuetify.ts
     babel.config.js
     package.json
     public/index.html
     src/App.vue
     src/assets/logo.png
     src/components/HelloWorld.vue
     src/main.ts
     yarn.lock

   You should review these changes with git diff and commit them.

โžœ yarn serve

yarn run v1.10.1
warning ../package.json: No license field
$ vue-cli-service serve
 INFO  Starting development server...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
 94% after seal                                                                        

 ERROR  Failed to compile with 1 errors                                                                 3:23:17 PM

Failed to resolve loader: babel-loader
You may need to install it.
Type checking and linting in progress...
WARNING in /home/amritk/apps/pulls/v/src/App.vue
73:49 Missing semicolon
    71 | 
    72 | <script>
  > 73 | import HelloWorld from './components/HelloWorld'
       |                                                 ^
    74 | 
    75 | export default {
    76 |   name: 'App',
WARNING in /home/amritk/apps/pulls/v/src/App.vue
78:15 Missing trailing comma
    76 |   name: 'App',
    77 |   components: {
  > 78 |     HelloWorld
       |               ^
    79 |   },
    80 |   data () {
    81 |     return {
WARNING in /home/amritk/apps/pulls/v/src/App.vue
80:7 Spaces before function parens are disallowed
    78 |     HelloWorld
    79 |   },
  > 80 |   data () {
       |       ^
    81 |     return {
    82 |       clipped: false,
    83 |       drawer: true,
WARNING in /home/amritk/apps/pulls/v/src/App.vue
87:25 Missing trailing comma
    85 |       items: [{
    86 |         icon: 'bubble_chart',
  > 87 |         title: 'Inspire'
       |                         ^
    88 |       }],
    89 |       miniVariant: false,
    90 |       right: true,
WARNING in /home/amritk/apps/pulls/v/src/App.vue
92:26 Missing trailing comma
    90 |       right: true,
    91 |       rightDrawer: false,
  > 92 |       title: 'Vuetify.js'
       |                          ^
    93 |     }
    94 |   }
    95 | }
WARNING in /home/amritk/apps/pulls/v/src/App.vue
93:6 Missing semicolon
    91 |       rightDrawer: false,
    92 |       title: 'Vuetify.js'
  > 93 |     }
       |      ^
    94 |   }
    95 | }
    96 | </script>
WARNING in /home/amritk/apps/pulls/v/src/App.vue
94:4 Missing trailing comma
    92 |       title: 'Vuetify.js'
    93 |     }
  > 94 |   }
       |    ^
    95 | }
    96 | </script>
    97 | 
WARNING in /home/amritk/apps/pulls/v/src/App.vue
95:2 Missing semicolon
    93 |     }
    94 |   }
  > 95 | }
       |  ^
    96 | </script>
    97 | 
WARNING in /home/amritk/apps/pulls/v/src/components/HelloWorld.vue
23:16 Missing trailing comma
    21 |   name: 'HelloWorld',
    22 |   props: {
  > 23 |     msg: String
       |                ^
    24 |   }
    25 | }
    26 | </script>
WARNING in /home/amritk/apps/pulls/v/src/components/HelloWorld.vue
24:4 Missing trailing comma
    22 |   props: {
    23 |     msg: String
  > 24 |   }
       |    ^
    25 | }
    26 | </script>
    27 | 
WARNING in /home/amritk/apps/pulls/v/src/components/HelloWorld.vue
25:2 Missing semicolon
    23 |     msg: String
    24 |   }
  > 25 | }
       |  ^
    26 | </script>
    27 | 
    28 | <!-- Add "scoped" attribute to limit CSS to this component only -->
WARNING in /home/amritk/apps/pulls/v/src/main.ts
1:25 Missing semicolon
  > 1 | import '@babel/polyfill'
      |                         ^
    2 | import Vue from 'vue';
    3 | import './plugins/vuetify'
    4 | import App from './App.vue';
WARNING in /home/amritk/apps/pulls/v/src/main.ts
3:27 Missing semicolon
    1 | import '@babel/polyfill'
    2 | import Vue from 'vue';
  > 3 | import './plugins/vuetify'
      |                           ^
    4 | import App from './App.vue';
    5 | import './registerServiceWorker';
    6 | 
WARNING in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
1:22 Missing semicolon
  > 1 | import Vue from 'vue'
      |                      ^
    2 | import {
    3 |   Vuetify,
    4 |   VApp,
WARNING in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
12:14 Missing trailing comma
    10 |   VGrid,
    11 |   VToolbar,
  > 12 |   transitions
       |              ^
    13 | } from 'vuetify'
    14 | import 'vuetify/src/stylus/app.styl'
    15 | 
WARNING in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
13:17 Missing semicolon
    11 |   VToolbar,
    12 |   transitions
  > 13 | } from 'vuetify'
       |                 ^
    14 | import 'vuetify/src/stylus/app.styl'
    15 | 
    16 | Vue.use(Vuetify, {
WARNING in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
14:37 Missing semicolon
    12 |   transitions
    13 | } from 'vuetify'
  > 14 | import 'vuetify/src/stylus/app.styl'
       |                                     ^
    15 | 
    16 | Vue.use(Vuetify, {
    17 |   components: {
WARNING in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
26:16 Missing trailing comma
    24 |     VGrid,
    25 |     VToolbar,
  > 26 |     transitions
       |                ^
    27 |   },
    28 |   iconfont: 'md',
    29 | })
WARNING in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
29:3 Missing semicolon
    27 |   },
    28 |   iconfont: 'md',
  > 29 | })
       |   ^
    30 | 
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
4:3 Module '"/home/amritk/apps/pulls/v/node_modules/vuetify/types/index"' has no exported member 'VApp'.
    2 | import {
    3 |   Vuetify,
  > 4 |   VApp,
      |   ^
    5 |   VNavigationDrawer,
    6 |   VFooter,
    7 |   VList,
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
5:3 Module '"/home/amritk/apps/pulls/v/node_modules/vuetify/types/index"' has no exported member 'VNavigationDrawer'.
    3 |   Vuetify,
    4 |   VApp,
  > 5 |   VNavigationDrawer,
      |   ^
    6 |   VFooter,
    7 |   VList,
    8 |   VBtn,
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
6:3 Module '"/home/amritk/apps/pulls/v/node_modules/vuetify/types/index"' has no exported member 'VFooter'.
    4 |   VApp,
    5 |   VNavigationDrawer,
  > 6 |   VFooter,
      |   ^
    7 |   VList,
    8 |   VBtn,
    9 |   VIcon,
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
7:3 Module '"/home/amritk/apps/pulls/v/node_modules/vuetify/types/index"' has no exported member 'VList'.
     5 |   VNavigationDrawer,
     6 |   VFooter,
  >  7 |   VList,
       |   ^
     8 |   VBtn,
     9 |   VIcon,
    10 |   VGrid,
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
8:3 Module '"/home/amritk/apps/pulls/v/node_modules/vuetify/types/index"' has no exported member 'VBtn'.
     6 |   VFooter,
     7 |   VList,
  >  8 |   VBtn,
       |   ^
     9 |   VIcon,
    10 |   VGrid,
    11 |   VToolbar,
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
9:3 Module '"/home/amritk/apps/pulls/v/node_modules/vuetify/types/index"' has no exported member 'VIcon'.
     7 |   VList,
     8 |   VBtn,
  >  9 |   VIcon,
       |   ^
    10 |   VGrid,
    11 |   VToolbar,
    12 |   transitions
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
10:3 Module '"/home/amritk/apps/pulls/v/node_modules/vuetify/types/index"' has no exported member 'VGrid'.
     8 |   VBtn,
     9 |   VIcon,
  > 10 |   VGrid,
       |   ^
    11 |   VToolbar,
    12 |   transitions
    13 | } from 'vuetify'
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
11:3 Module '"/home/amritk/apps/pulls/v/node_modules/vuetify/types/index"' has no exported member 'VToolbar'.
     9 |   VIcon,
    10 |   VGrid,
  > 11 |   VToolbar,
       |   ^
    12 |   transitions
    13 | } from 'vuetify'
    14 | import 'vuetify/src/stylus/app.styl'
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
12:3 Module '"/home/amritk/apps/pulls/v/node_modules/vuetify/types/index"' has no exported member 'transitions'.
    10 |   VGrid,
    11 |   VToolbar,
  > 12 |   transitions
       |   ^
    13 | } from 'vuetify'
    14 | import 'vuetify/src/stylus/app.styl'
    15 | 
ERROR in /home/amritk/apps/pulls/v/src/plugins/vuetify.ts
16:9 'Vuetify' only refers to a type, but is being used as a value here.
    14 | import 'vuetify/src/stylus/app.styl'
    15 | 
  > 16 | Vue.use(Vuetify, {
       |         ^
    17 |   components: {
    18 |     VApp,
    19 |     VNavigationDrawer,
Version: typescript 3.1.1, tslint 5.11.0
Time: 1830ms

a la carte mode dont load components

Uncaught TypeError: Cannot read property 'install' of undefined, is the error message that eslint throws, according to I read in 3496, it corrects my problem halfway, since it is possible to use vuetify, but not its components

[Bug Report] Error on install - Invalid Version

When trying to install the latest vue-cli-plugin-vuetify I'm getting the following error:

? Choose a preset: Configure (advanced)
? Use a pre-made template? (will replace App.vue and HelloWorld.vue) Yes
? Use custom theme? No
? Use custom properties (CSS variables)? No
? Select icon font Material Design Icons
? Use fonts as a dependency (for Electron or offline)? Yes
? Use a-la-carte components? Yes
? Select locale Dutch
 ERROR  TypeError: Invalid Version: [object Object]
TypeError: Invalid Version: [object Object]

[Bug Report] Installation fails when src directory is not found

Versions and Environment

Vuetify: 1.0.19
Vue: 2.5.17
Browsers: Chrome 69.0.3497.92
OS: Mac OS 10.13.5

Steps to reproduce

I tried to install Vuetify in a project where the 'src' directory has been renamed to 'vue' and the installation fails when running completion hooks: "Error: ENOENT: no such file or directory, open '/code/src/main.js'"

Expected Behavior

I'm not sure if it's reasonable to expect people to move things around, but at least the installer could just fail gracefully and either ask for the new directory name or just say that "didn't find src directory in default place, skipped writing of pre-made templates".

Actual Behavior

Error: ENOENT: no such file or directory, open '/code/src/main.js'

Reproduction Link

https://codesandbox.io/s/z21zlv53jx

How do I change the /src/ directory?

Hi! I'm using vuetify to do interactive documentation for my library at handsfree.js.org. I've configured my /vue.config.js as follows:

const path = require('path')

module.exports = {
  configureWebpack: {
    entry: {
      handsfree: ['idempotent-babel-polyfill', path.join(__dirname, 'lib/Handsfree.js')]
    },

    output: {
      path: path.join(__dirname, 'dist'),
      filename: `[name].js`,
      library: 'Handsfree',
      libraryTarget: 'umd'
    }
  }
}

This allows me to code the vuetify documentation site from /src/ and the actual handsfree.js NPM package from /lib/. However, this is super confusing because if you've forked my project to make changes to my package you would expect /src/ to be were to look first.

How would I tell vue/vuetify to serve from /www/ instead of /src/? I tried adding:

module.exports = {
  pages: {
    index: {
      entry: 'www/main.js'
    }
  },
  //... rest of vue.config.js
}

And that builds the site, but now my Handsfree.js is being injected as a module and not the class:

image

image

I hope that makes sense, I can provide more info if needed

Error to Quick Start in W10

Versions and Environment

Package.son contain
"@babel/polyfill": "^7.0.0-rc.1",
"vue": "^2.5.17",
"vuetify": "^1.2.0"

OS: Windows 10

Node version: v8.12.0

Npm version: 6.4.1

Steps to reproduce

Quick start: https://vuetifyjs.com/en/getting-started/quick-start
npm install @vue/cli -g
imagen
imagen

vue create my-app
imagen

vue add vuetify
imagen

npm run serve
imagen

Actual Behavior

Failed to compile with 1 error

imagen

Update to vuetify 1.1.14

Any change the plugin gets updated to the latest version of Vuetify?
This plugin is really handy, specially with the new Vue UI project management plugins.
Or how can we update it manually?

[Bug Report] Multiple instances of Vue detected in test with Jest and Vuetify

Versions and Environment

Vuetify: 1.3.16
Vue: 2.5.21
Browsers: Chrome 71.0.3578.98
OS: Windows 7

Steps to reproduce

run unit tests with jest

npm run test:unit

Expected Behavior

$ npm run test:unit

> [email protected] test:unit D:\Projets\vuetify-jest
> vue-cli-service test:unit

PASS tests/unit/example.spec.js
  HelloWorld.vue
    v matches snapshot (83ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   1 passed, 1 total
Time:        1.811s
Ran all test suites.

Actual Behavior

$ npm run test:unit

> [email protected] test:unit D:\Projets\vuetify-jest
> vue-cli-service test:unit

PASS tests/unit/example.spec.js
  HelloWorld.vue
    v matches snapshot (83ms)

  console.error node_modules/vuetify/dist/vuetify.js:22968
    [Vuetify] Multiple instances of Vue detected
    See https://github.com/vuetifyjs/vuetify/issues/4068

    If you're seeing "$attrs is readonly", it's caused by this

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   1 passed, 1 total
Time:        1.811s
Ran all test suites.

Reproduction Link

https://github.com/marc-bouvier/vuetify-jest

Other comments

Installed from vue-cli plugins only.
No configuration was changed manually.

Vue-cli plugins used :

Vue-cli 3.0.5
@vue/cli-service 3.2.3
@vue/cli-plugin-babel 3.2.2
@vue/cli-plugin-eslint 3.2.2
@vue/cli-plugin-unit-jest 3.2.3
vue-cli-plugin-editorconfig 0.2.1
vue-cli-plugin-i18n 0.5.1
vue-cli-plugin-vuetify 0.4.6

Cant install vuetify in a new default project

It left me with broken vue files where template code got inserted between the script and style sections.

plugin 0.1.6
vue cli: rc3

This was inserted between the tags in Home.vue

l>
            <em>&mdash;John Johnson</em>
            </small>
        </footer>
        </blockquote>
    </v-layout>
    </v-slide-y-transition>
</v-container>
</template>

Breaks with typescript project

It tries to replace src/main.js but it doesn't exist since typescript projects will have a src/main.ts

$ vue add vuetify

๐Ÿ“ฆ  Installing vue-cli-plugin-vuetify...

yarn add v1.6.0
(node:24) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info No lockfile found.




success Saved lockfile.
success Saved 11 new dependencies.
info Direct dependencies
โ””โ”€ [email protected]
info All dependencies
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ””โ”€ [email protected]
Done in 0.59s.

โœ”  Successfully installed plugin: vue-cli-plugin-vuetify
? Allow Vuetify to replace App.vue and HelloWorld.vue? Yes
? Use custom theme? Yes
? Use a-la-carte components? No
๐Ÿš€  Invoking generator for vue-cli-plugin-vuetify...
yarn install v1.6.0
โ ผ  Installing additional dependencies...(node:48) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4] Resolving packages...
success Saved lockfile.
Done in 1.08s.
๐Ÿ“ฆ  Installing additional dependencies...
โ ‹  Running completion hooks... ERROR  Error: ENOENT: no such file or directory, open '/app/src/main.js'
Error: ENOENT: no such file or directory, open '/app/src/main.js'
    at Object.fs.openSync (fs.js:545:3)
    at Object.fs.readFileSync (fs.js:451:33)
    at api.onCreateComplete (/app/node_modules/vue-cli-plugin-vuetify/generator/index.js:94:24)
    at invoke (/usr/local/lib/node_modules/@vue/cli/lib/invoke.js:123:13)
    at process._tickCallback (internal/process/next_tick.js:178:7)

[Bug Report] IE11 - syntax error

Versions and Environment

Vuetify: 1.3.5
Vue: 2.5.17
Browsers: Chrome 70.0.3538.77
OS: Windows 10

Steps to reproduce

vue create temp - default
vue add vuetify - default
cd temp
npm run build
http-server ./dist

Expected Behavior

To work

Actual Behavior

Syntax error in IE11 console

Reproduction Link

https://github.com/ziaxdk/vuetify-cli-bug

Other comments

Looks like arrow function are not transpiled into ordinary functions, when "vue add vuetify":
{render:t=>t(T)}).$mount("#app")}

Got error when run "npm run build"

I just try to run
> vue init vuetifyjs/cordova myp
> cd myp
> npm install

then :
> npm run dev

everything is success.

Next, i try to build as production with command:
> npm run build

i got the following error:

(node:484) UnhandledPromiseRejectionWarning: TypeError: decl.moveTo is not a function
at C:\Users\annlu\Desktop\TEST\my-project\myp\common.a23b81d1a67c3bf87a6b.css:8169:1
at C:\Users\annlu\Desktop\TEST\my-project\myp\common.a23b81d1a67c3bf87a6b.css:8171:3
at C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss-merge-rules\dist\index.js:246:22
at C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss\lib\container.js:135:18
at Rule.each (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss\lib\container.js:101:16)
at Rule.walk (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss\lib\container.js:131:17)
at C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss-merge-rules\dist\index.js:242:18
at C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss\lib\container.js:239:18
at C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss\lib\container.js:135:18
at Root.each (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss\lib\container.js:101:16)
at Root.walk (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss\lib\container.js:131:17)
at Root.walkRules (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss\lib\container.js:237:19)
at C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\postcss-merge-rules\dist\index.js:267:13
at LazyResult.run (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\cssnano\node_modules\postcss\lib\lazy-result.js:274:20)
at LazyResult.asyncTick (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\cssnano\node_modules\postcss\lib\lazy-result.js:189:32)
at LazyResult.asyncTick (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\cssnano\node_modules\postcss\lib\lazy-result.js:201:22)
at LazyResult.asyncTick (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\cssnano\node_modules\postcss\lib\lazy-result.js:201:22)
at LazyResult.asyncTick (C:\Users\annlu\Desktop\TEST\my-project\myp\node_modules\cssnano\node_modules\postcss\lib\lazy-result.js:201:22)
(node:484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:484) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Please correct me if i am wrong.

Just for additional information, my environtment is:

Operating
system : Windows 10 Pro 64bit
Nodejs version : 10.14.1
Vue-cli version: 2.9.6
npm version: 6.4.1

CLI build production - Vuetify CSS is merged after Vue component(s) CSS

Currently the plugin is setup to inject the Vuetify import(s) after all others in main.js/main.ts file.
The Vuetify CSS is merged after the Vue component(s) styles, when you do a production build.

Ran into issue where some style elements weren't being applied to components. Its the order of things.

I resolved by shuffling the imports like so:

import Vue from 'vue'
import './registerServiceWorker'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'

import App from './App.vue'

Vue.use(Vuetify)

Vue.config.productionTip = false

new Vue({
  render: h => h(App)
}).$mount('#app')

Having the vuetify css import anywhere before the App import resolves.
NOTE: Order is not an issue if your .vue file components style blocks are scoped.

Adding vuetify to cli project build error

$ vue-cli-service serve --mode development --dashboard
INFO Starting development server...

Starting type checking and linting service...

0% compilingUsing 1 worker with 2048MB memory limit

91% recording DONE Compiled successfully in 17043ms16:42:24

ERROR in D:/TLCodeOnline/beefsteak/TryOnce/TryOnce.Sale.WebSPA/node_modules/vuetify/types/alacarte.d.ts
8:12 Module '"../../../../../../../TLCodeOnline/beefsteak/TryOnce/TryOnce.Sale.WebSPA/types/vuetify"' has no exported member 'ComponentOrPack'.
6 |
7 | declare module 'vuetify/es5/components/*' {

8 | import { ComponentOrPack } from 'vuetify'
| ^
9 | import { VueConstructor } from 'vue'
10 |
11 | const VuetifyComponent: {
ERROR in D:/TLCodeOnline/beefsteak/TryOnce/TryOnce.Sale.WebSPA/node_modules/vuetify/types/lib.d.ts
3:12 Module '"../../../../../../../TLCodeOnline/beefsteak/TryOnce/TryOnce.Sale.WebSPA/types/vuetify"' has no exported member 'Vuetify'.
1 | declare module 'vuetify/lib' {
2 | import { Component, DirectiveOptions } from 'vue'
3 | import { Vuetify } from 'vuetify'
| ^
4 | import { Colors } from 'vuetify/lib/util/colors'
5 |
6 | const Vuetify: Vuetify

No lint errors found
Version: typescript 3.4.4, tslint 5.16.0
Time: 4240ms

App running at:

Note that the development build is not optimized.
To create a production build, run yarn build.

[Bug Report] Error on install

Versions and Environment

Vuetify: 1.5.4
Last working version: 1.5.4
Vue: 2.6.8
Browsers: Chrome 72.0.3626.119
OS: Linux x86_64

Steps to reproduce

vue add vuetify
or
vue add vue-cli-plugin-vuetify

vue add vuetify tries to add vue-clie-plugin-vuetify but fails on installing it. Missing logo.svg file.

Expected Behavior

installs either package

Actual Behavior

pierre@pierre-xps:~/project/heroleads/src/alpha-frontend$ vue add vue-cli-plugin-vuetify

๐Ÿ“ฆ  Installing vue-cli-plugin-vuetify...

yarn add v1.12.1
[1/5] Resolving packages...
[2/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/5] Linking dependencies...
[4/5] Building fresh packages...
[5/5] Cleaning modules...
success Saved 1 new dependency.
info Direct dependencies
โ””โ”€ [email protected]
info All dependencies
โ””โ”€ [email protected]
Done in 5.25s.
โœ”  Successfully installed plugin: vue-cli-plugin-vuetify

? Choose a preset: Default (recommended)

๐Ÿš€  Invoking generator for vue-cli-plugin-vuetify...
 ERROR  Error: ENOENT: no such file or directory, open '/home/pierre/project/heroleads/src/alpha-frontend/node_modules/vue-cli-plugin-vuetify/generator/templates/default/src/assets/logo.svg'
Error: ENOENT: no such file or directory, open '/home/pierre/project/heroleads/src/alpha-frontend/node_modules/vue-cli-plugin-vuetify/generator/templates/default/src/assets/logo.svg'
    at Object.fs.openSync (fs.js:646:18)
    at Function.module.exports.sync (/usr/local/share/.config/yarn/global/node_modules/isbinaryfile/index.js:117:25)
    at renderFile (/usr/local/share/.config/yarn/global/node_modules/@vue/cli/lib/GeneratorAPI.js:301:16)
    at _injectFileMiddleware.files (/usr/local/share/.config/yarn/global/node_modules/@vue/cli/lib/GeneratorAPI.js:196:27)
    at Generator.resolveFiles (/usr/local/share/.config/yarn/global/node_modules/@vue/cli/lib/Generator.js:200:13)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Reproduction Link

Other comments

No link as it is an install issue

Error with Stylus and A-la-carte

Hello, I have problem when using a-la-carte way in vue-cli 3

import Vuetify from 'vuetify/es5/components/Vuetify'
import VList from 'vuetify/es5/components/VList'
import VMenu from 'vuetify/es5/components/VMenu'

then got this error

    /home/wildan/Projects/Sensorfied/EDI/edi-ui/node_modules/vuetify/src/stylus/components/_lists.styl:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){@import '../bootstrap'
                                                                                             ^

    SyntaxError: Invalid or unexpected token

      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:316:17)
      at Object.<anonymous> (node_modules/vuetify/es5/components/VList/VList.js:7:1)
      at Object.<anonymous> (node_modules/vuetify/es5/components/VList/index.js:10:14)

I was sure when vue create I choose Stylus as the pre-processsor ๐Ÿค”
Any suggestion/workaround for this?

[Bug Report] 'vue add vuetify' returning 404

Versions and Environment

Vuetify: 1.5.7
Vue: 3.5.4
Browsers: Chrome 73.0.3683.75
OS: Linux x86_64

Steps to reproduce

Install vue 3.5.4
Run: vue add vuetify

Expected Behavior

Add Vuetify to my project

Actual Behavior

Get:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/vue-cli-plugin-vuteify - Not found
npm ERR! 404 
npm ERR! 404  'vue-cli-plugin-vuteify@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:

how to debug my ower plugin?

hello, i'm trying to develop a plugin for vue cli 3.0 ;

but in my development environmen, it seem have no way to debug my plugin code๏ผŒ i only find the command of invoke๏ผ›

Could you tell my some method or flows to develop a cli plugin ? thanks

Forgive me for my poor English

Error installing [email protected]

[email protected]
vue/[email protected]

NPM, Babel, TS, PWA, TSLint, Jest, Cypress

๐Ÿ“ฆ  Installing vue-cli-plugin-vuetify...

+ [email protected]
updated 1 package and audited 48036 packages in 8.224s
found 0 vulnerabilities

โœ”  Successfully installed plugin: vue-cli-plugin-vuetify

 ERROR  Error: ENOENT: no such file or directory, scandir '/home/wittestier/Web/elkerbout/client/node_modules/vue-cli-plugin-vuetify/node_modules/vuetify/src/locale'
Error: ENOENT: no such file or directory, scandir '/home/wittestier/Web/elkerbout/client/node_modules/vue-cli-plugin-vuetify/node_modules/vuetify/src/locale'
    at Object.fs.readdirSync (fs.js:921:18)
    at Object.<anonymous> (/home/wittestier/Web/elkerbout/client/node_modules/vue-cli-plugin-vuetify/util/locales.js:24:21)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
    at Object.<anonymous> (/home/wittestier/Web/elkerbout/client/node_modules/vue-cli-plugin-vuetify/prompts.js:6:17)

Unit test error

@vue/cli: 3.0.0-beta.10
vue-cli-plugin-vuetify: 0.1.3
vuetify: 1.0.16

When i run unit test, i'v got this error message.

    console.error node_modules/vue/dist/vue.runtime.common.js:589
    [Vue warn]: Unknown custom element: <v-container> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
    
    (found in <Root>)

    console.error node_modules/vue/dist/vue.runtime.common.js:589
    [Vue warn]: Unknown custom element: <v-slide-y-transition> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
    
    (found in <Root>)

    console.error node_modules/vue/dist/vue.runtime.common.js:589
    [Vue warn]: Unknown custom element: <v-layout> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
    
    (found in <Root>)

Step to reproduce:

vue create myapp
cd myapp
vue add vuetify
npm run test:unit

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.