vue-preset | 结合 vue-cli4.x 的 preset 搭建基于 git repo 的前端项目模板,支持vue3.0 | Frontend Framework library
kandi X-RAY | vue-preset Summary
kandi X-RAY | vue-preset Summary
vue-preset
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-preset
vue-preset Key Features
vue-preset Examples and Code Snippets
Community Discussions
Trending Discussions on vue-preset
QUESTION
i'm trying to create a remote vue cli preset on github, but for some reason i keep getting a syntax error.
My preset repo: https://github.com/christoph-schaeffer/vue-preset
The command i have entered: vue create --preset christoph-schaeffer/vue-preset testProject
The Error i get:
...ANSWER
Answered 2020-Aug-19 at 09:38I've found the issue.
First: the vue cli somehow seems to cache remote presets. That's the reason why it didn't work even after reverting changes.
The actual issue was, that the main.js shouldn't be changed like the other template files and needs special attention. For some weird reason it gives those random errors as soon as you have a main.js in your template.
If anyone is curious on how to modify your main.js in a preset check out : https://cli.vuejs.org/dev-guide/plugin-dev.html#changing-main-file
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-preset
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page