执行flow或npm run flow总抛错 flow/component.js:7:10 cid: number
来源:1-5 Vue.js 源码构建

一天宏图
2020-11-21
老师,flow抛出错误, 执行到第三步flow总抛错 flow/component.js:7:10 cid: number ,操作和课堂相同
1.npm install -g flow-bin 2.flow init 3.flow 换或npm run flow错误更多了
8回答
-
一天宏图
提问者
2020-11-21
/* @flow */这个也有
00 -
一天宏图
提问者
2020-11-21
因为flow错误,vue底层源码涉及到 Flow语法全部错误 显示没有.ts文件
012020-11-22 -
一天宏图
提问者
2020-11-21
flow/component.js文件
import type { Config } from '../src/core/config'// 此处显示红色波浪线错误
import type VNode from '../src/core/vdom/vnode'/// 此处显示红色波浪线错误
import type Watcher from '../src/core/observer/watcher'//此处显示红色波浪线错误
declare interface Component {//此处显示红色波浪线错误
// constructor information
static cid: number;
static options: Object;
// extend
static extend: (options: Object)
00 -
一天宏图
提问者
2020-11-21
Error ---------------------------------------------------------------------------------
---------- flow/component.js:7:10
Unexpected identifier, expected the token `:`
7| static cid: number;
^^^
Found 1 error
00 -
一天宏图
提问者
2020-11-21
Error ---------------------------------------------------------------------------------
---------- flow/component.js:7:10
Unexpected identifier, expected the token `:`
00 -
一天宏图
提问者
2020-11-21
[info] argv=E:\nodejs\node_modules\flow-bin\flow-win64-v0.138.0\flow.exe start --flowconfig-name .flowconfig --temp-dir C:\Users\Lenovo\AppData\Local\Temp\flow D:\vue_workspace\myvuesource
00 -
ustbhuangyi
2020-11-21
报错的具体信息是什么?
00 -
一天宏图
提问者
2020-11-21
执行npm run flow 错误更多
00
相似问题