YMFE / ykit

基于 Webpack 的灵活快速的打包工具,帮助稳定高效构建现代 JavaScript 应用。
https://ykit.ymfe.org/
Apache License 2.0
392 stars 56 forks source link

macbook pro node6.9.2报少browser.js #38

Closed yougucaofan closed 6 years ago

yougucaofan commented 6 years ago

✖ [00:23:30] 1 error in compiling process. [error] in ../.nvm/versions/node/v6.9.2/lib/~/ykit/~/process/browser.js Module build failed: ReferenceError: Unknown plugin "transform-decorators-legacy" specified in "base" at 0, attempted to resolve relative to "/Users/xxx/.nvm/versions/node/v6.9.2/lib/node_modules/ykit/node_modules/process" at Array.map (native)

honchy commented 6 years ago

@yougucaofan 我尝试重现下问题,稍后回复你。

roland-reed commented 6 years ago

看起来是没有正确安装 babel-plugin-transform-decorators-legacy,请检查一下是否已正确安装该 npm 包,或者检查一下是否由于 package-lock.json / yarn.lock 里锁定了包导致该插件未安装。

roland-reed commented 6 years ago

Closed due to inactivity. Feel free to reopen if you still encounter this problem.