ecomfe / fecs

Front End Code Style Suite
http://fecs.baidu.com/
643 stars 115 forks source link

旧版本(0.3.0)启动检查的问题 #356

Open arjenzhou opened 5 years ago

arjenzhou commented 5 years ago

背景:团队使用的fecs版本较老,在对规则进行定制时本地启动fecs时报错 bin/fecs check index.js

evalmachine.<anonymous>:27
const { Math, Object } = primordials;
                         ^

ReferenceError: primordials is not defined
    at evalmachine.<anonymous>:27:26
    at Object.<anonymous> (/Users/zhouyang23/code/fecs/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:11:1)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
    at Module.load (internal/modules/cjs/loader.js:641:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Module.require (internal/modules/cjs/loader.js:681:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (/Users/zhouyang23/code/fecs/node_modules/vinyl-fs/node_modules/graceful-fs/graceful-fs.js:3:27)
    at Module._compile (internal/modules/cjs/loader.js:774:30)