Ember构建问题:“不能一起使用装饰器和装饰器 - 遗留插件”

问题描述 投票:0回答:1

我最近遇到了使用bitbucket管道构建我的ember项目的问题:

+ ember build --environment="production"
Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
Building
Environment: production
cleaning up
cleaning up...
Build Error (broccoli-persistent-filter:Babel > [Babel: ember-data]) in ember-data/adapters/json-api.js
Cannot use the decorators and decorators-legacy plugin together

我目前正在使用ember-cli版本3.8.1。

所有构建环境都会出现问题,而不仅仅是生产环境。令我感到困惑的是,在上次成功构建和之后失败的构建之间没有添加新的npm软件包或ember插件 - 现在如果我重新运行成功的构建,那么也会失败。

我已经在提交历史中返回到一个有效的提交,然后快进到当前的一步一步 - 总是删除node_modules并重新安装包。它始终在本地工作,但在管道运行时总是会失败。

我也尝试更新我的docker镜像。

我已经完成并尝试了列出here的解决方案 - 但似乎它们已经在3.8.1版中得到了解决。

另外,如果有任何帮助,这是我的bitbucket-pipelines.yml:

pipelines:
  branches:
    master:
      - step:
         name: Building Ember Project
         script:
          - npm install
          - npm install firebase-tools
          - ember build --environment="production"
      - step:
         trigger: manual
         deployment: production
         name: Deploy to Production
         script:
          - firebase use prod
          - firebase deploy --non-interactive --token ${FIREBASE_TOKEN}

谢谢大家!

ember.js ember-data babel bitbucket-pipelines broccolijs
1个回答
0
投票

这听起来像是一种在飞行中随时改变的子依赖性。你有一个npm或纱线锁文件作为你的回购的一部分提交? Lockfiles专门设计用于防止像这样的障碍

© www.soinside.com 2019 - 2024. All rights reserved.