Taro: Unknown plugin "transform-decorators-legacy"

Created on 18 Sep 2018  ·  4Comments  ·  Source: NervJS/taro

问题描述
[问题描述:站在其它人的角度尽可能清晰地、简洁地把问题描述清楚]

复现步骤
[复现问题的步骤]

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

[或者可以直接贴源代码,能贴文字就不要截图]

// 这里可以贴代码
ReferenceError: Unknown plugin "transform-decorators-legacy" specified in "base" at 1, attempted to resolve relative to "/Users/stark/item/xcx/taroinit"
    at /Users/stark/item/xcx/taroinit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
    at Array.map (<anonymous>)
    at Function.normalisePlugins (/Users/stark/item/xcx/taroinit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/Users/stark/item/xcx/taroinit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/Users/stark/item/xcx/taroinit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/stark/item/xcx/taroinit/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Users/stark/item/xcx/taroinit/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/Users/stark/item/xcx/taroinit/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at babel (/Users/stark/item/xcx/taroinit/node_modules/@tarojs/plugin-babel/index.js:6:17)
    at Object.callPlugin (/Users/stark/.config/yarn/global/node_modules/@tarojs/cli/src/util/npm.js:110:10)
编译  所有页面

期望行为
[这里请用简洁清晰的语言描述你期望的行为]

报错信息

[这里请贴上你的完整报错截图或文字]

系统信息

  • 操作系统: [e.g. Windows 10]
  • Taro 版本 [e.g. v.0.0.64]
  • Node.js 版本 [e.g. v9.0.0]

补充信息
[可选]
[根据你的调查研究,出现这个问题的原因可能在哪里?]

good first issue

Most helpful comment

任何 Unknown plugin "xxx" 都是依赖模块没有下载好,跟大家的网络环境或者node版本有关系。
建议你们还是切换到淘宝源。
本身运行 npm run dev:xxx的时候,先下载模块。
流程:

1. taro init xxx
2. cnpm install  (先现在好依赖模块,然后在运行)
3. npm run dev:xxx

All 4 comments

项目依赖没有装好,重新安装下依赖~
另外,你的 Taro 版本太低了哦,现在都 1.0.0-beta.30

昨天刚下载的.. 就这么低了吗,一直运行着,重启了一下,就出现这个问题了。依赖装了很多次,还是报这个错误。

刚刚发布了 1.0.0 版本
还是依赖没有装好的问题,可以删了 node_modules 再清一下 npm 缓存然后再重装

任何 Unknown plugin "xxx" 都是依赖模块没有下载好,跟大家的网络环境或者node版本有关系。
建议你们还是切换到淘宝源。
本身运行 npm run dev:xxx的时候,先下载模块。
流程:

1. taro init xxx
2. cnpm install  (先现在好依赖模块,然后在运行)
3. npm run dev:xxx
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruixiu picture ruixiu  ·  3Comments

fxy5869571 picture fxy5869571  ·  3Comments

liu-dongyu picture liu-dongyu  ·  3Comments

Zchary-Ma picture Zchary-Ma  ·  3Comments

wyhaya picture wyhaya  ·  3Comments