Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decorators fail when trying to build app in Travis CI #143

Open
caseychoiniere opened this issue May 24, 2018 · 0 comments
Open

Decorators fail when trying to build app in Travis CI #143

caseychoiniere opened this issue May 24, 2018 · 0 comments

Comments

@caseychoiniere
Copy link

I've set up a basic application with CRA and Mobx and using Custom React Scripts to get decorators working in Create React App.

It works great but when I setup Travis CI to run on Github pull requests it fails because of the decorators. It fails when running npm run test or npm run build.

I figured it was simply a configuration issue with Travis CI so I tried many different changes and options in my .travis.yml file but couldn't get it to work.

I transferred my app to use React App Rewired instead and it worked fine on Travis CI without any issues.

Not entirely sure why this is happening but thought I would report it in the hopes that someone can assist me now or others in the future. Would be cool if this could support decorators on Travis out of the box.

Thank you.

Here's my current .travis.yml file that works using React App Rewired:

language: node_js

node_js:
  - 9

cache:
  directories:
    - node_modules

script:
  - cd react-ui/ && npm install && npm install --only=dev --no-shrinkwrap && npm run test && CI=false npm run build

branches:
  only:
  - master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant