We are attempting to set up our project on CircleCI and are currently having it fail the build during the yarn install portion.
The error we are receiving is
$ sed -i ‘’ ‘s/#import <RCTAnimation/RCTValueAnimatedNode.h>/#import “RCTValueAnimatedNode.h”/’ ./node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h
sed: can’t read s/#import <RCTAnimation/RCTValueAnimatedNode.h>/#import “RCTValueAnimatedNode.h”/: No such file or directory
in our package.json we have a postinstall script that corrects this issue
"sed -i '' 's/#import <RCTAnimation\\/RCTValueAnimatedNode.h>/#import \"RCTValueAnimatedNode.h\"/' ./node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h"
the issue is we are having difficulties finding a way or where to place this in the config.yml or if that is the right route to go with the correcting the issue.
our config.yml looks like
jobs:
build:
working_directory: ~/project
environment:
LC_ALL: C.UTF-8
LANG: C.UTF-8
docker:
- image: circleci/node:latest
## setup
steps:
- checkout
- restore_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
- restore_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
- run: yarn install
- save_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
paths:
- ~/.cache/yarn
- save_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
paths:
- node_modules
## run tests
- run:
name: jest tests
command: yarn test
and advice or incite would be greatly appreciated