00节NuxtJS视频教程介绍-Nuxt.js免费视频教程 开启SSR渲染
热门回复:
- 是半条咸鱼:支持一下,新公司要用这个框架..刚接触一脸懵逼
- 轻微二点五次元:支持一下,刚好需要做seo,顺便问一下现有的vue项目改的话难不难
- MadoDragon:import Vue from 'vue'
import tools from 'project-general-tools'
Vue.prototype.$tools = tools;
Vue.prototype.$log = tools.log;使用候报错:
Property '$tools' does not exist on type 'Readonly<Record<never, any>> & Vue'.
mounted() {
22 |
> 23 | this.$log.info('test log', this.$tools.formatInitTime());
| ^
24 | }
官网说明:
https://zh.nuxtjs.org/guide/plugins
emmm.... 明明一毛一样写的 编译的时候 还是会报错
- 爱编程的小学究:vue init nuxt/starter
报错,
Usage: init 【options】 <template> <app-name>
generate a project from a remote template (legacy API, requires @vue/cli-init)
Options:
-c, --clone Use git clone when fetching remote template
--offline Use cached template
-h, --help output usage information
Missing required argument <app-name>.
- 可贰的小麻球:已有的项目再用nuxt.js重构一道需要多久