Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #1600
Closed
Open
Issue created Feb 20, 2017 by Administrator@rootContributor

travis build fails after eject - path to polyfills is broken

Created by: razvanilin

The builds were successful before the eject command, but now they are not passing and I get this error:

> depomo@0.1.0 test /home/travis/build/razvanilin/depomo/client
> node scripts/test.js --env=jsdom
 FAIL  src/containers/App.test.js
  ● Test suite failed to run
    ENOENT: no such file or directory, stat '/home/travis/build/razvanilin/depomo/client/\config\polyfills.js'
      
      at Object.fs.statSync (fs.js:907:18)
      at Object.statSync (node_modules/graceful-fs/polyfills.js:297:22)
      at process._tickCallback (internal/process/next_tick.js:103:7)
Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.62s
Ran all test suites.
npm ERR! Test failed.  See above for more details.

The path to polyfills.js seems to be broken. My guess is that I build this app on windows environment and travis uses unix type OSes. My knowledge in how travis works are quite limited and I might be missing something really basic.

I also tried to find where the path is being used in the settings files but couldn't find anything on this matter.

Can somebody shine a light on this?

npm: 3.10.9 Windows 10

travis settings:

language: node_js
node_js:
  - "7"
cache:
  directories:
    - server/node_modules
    - client/node_modules
services: mongodb
script: cd server && npm install && npm test && cd ../client && npm install && npm test
Assignee
Assign to
Time tracking