macOS plan required for react-native?

I am trying to use circleci to test linting and flow on a react-native project which would require just a nodejs environment which as I understand is part of the free tier, however when trying to build I recieve the following error:

Sorry! Your build didn't run because it looks like you haven't selected a macOS plan yet. If you have any questions, please feel free to contact us in support.

However I am not using macOS at all, see config below:

# Javascript Node CircleCI 2.0 configuration file

version: 2
jobs:
  node:
    working_directory: ~/some-app

    docker:
      - image: circleci/node:8.9

    steps:
      - checkout

      - restore_cache:
          key: npm-v1-{{ checksum "package-lock.json" }}-{{ arch }}

      - restore_cache:
          key: node-v1-{{ checksum "package.json" }}-{{ arch }}

      - run: npm install

      - save_cache:
          key: npm-v1-{{ checksum "package-lock.json" }}-{{ arch }}
          paths:
            - ~/.cache/npm

      - save_cache:
          key: node-v1-{{ checksum "package.json" }}-{{ arch }}
          paths:
            - node_modules

      - run:
          name: linters
          command: |
            npm run lint
            npm run flow

      - persist_to_workspace:
          root: ~/some-app
          paths:
            - node_modules

workflows:
  version: 2
  node-android-ios:
    jobs:
      - node

So is macOS plan required for react-native regardless?

No, it should be fine on the Docker platform. Try removing the workflows section and renaming the job from node to build, just to simplify the config temporarily. I can’t see anything wrong with it.

1 Like

I ran your config and it worked for me: https://circleci.com/gh/felicianotech/cci-testing-pub/709

There were some errors but that’s because I don’t have your project code, not due to the build environment. I’ll try halfer's suggestion and if there’s still a problem, contact support.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.