Cypress 12 docker image throw an error "We stopped running your tests because your config file crashed."

870 views
Skip to first unread message

Sachin

unread,
Jan 5, 2023, 3:27:06 AM1/5/23
to seleniu...@googlegroups.com
Hi All, 

Kindly help in solving this. I have been stuck here from last 2 weeks. please help me ..

I upgrade the cypress from 8 to cypress 12
I tried with docker images cypress/base:16.16.0, cypress/base:17.3.0 , cypress/base:16.17.0 , cypress/base:18.6.0 for Cypress Version cypress 10.1.0 and cypress 12.2.0 .

But still getting an error :
Your configFile threw an error from: cypress.config.js

We stopped running your tests because your config file crashed.

Details error log :

Failed to read cypress.json, using default configuration
Spec files:  cypress/integration/**/*.feature
[STARTED] Task without title.
[TITLE]  Verified Cypress!       /root/.cache/Cypress/10.11.0/Cypress
[SUCCESS]  Verified Cypress!       /root/.cache/Cypress/10.11.0/Cypress
[502:0103/130507.193374:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped

================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        10.11.0                                                                        │
  │ Browser:        Electron 106 (headless)                                                        │
  │ Node Version:   v16.17.0 (/usr/local/bin/node)                                                 │
  │ Specs:          2 found (ipm_archive/ipm_archive-homepage.feature, ipm/IPM-homepage.feature)   │
  │ Searched:       /cypress/integration/ipm_archive/ipm_archive-homepage.feature, /cypress/integr │
  │                 ation/ipm/IPM-homepage.feature                                                 │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  ipm_archive/ipm_archive-homepage.feature                                        (1 of 2)

Your configFile threw an error from: cypress.config.js

We stopped running your tests because your config file crashed.

Error: ENOENT: no such file or directory, lstat '/support'
    at Object.lstatSync (node:fs:1566:3)
    at Object.<anonymous> (/root/.cache/Cypress/10.11.0/Cypress/resources/app/node_modules/@packages/server/node_modules/graceful-fs/polyfills.js:312:16)
    at Object.lstatSync (/root/.cache/Cypress/10.11.0/Cypress/resources/app/node_modules/@packages/server/node_modules/graceful-fs/polyfills.js:312:16)
    at Host._follow (/node_modules/tsify/lib/Host.js:278:19)
    at Host.writeFile (/node_modules/tsify/lib/Host.js:127:29)
    at Object.writeFile (/node_modules/typescript/lib/typescript.js:115534:132)
    at Object.writeFile (/node_modules/typescript/lib/typescript.js:18270:14)
    at printSourceFileOrBundle (/node_modules/typescript/lib/typescript.js:108722:16)
    at emitJsFileOrBundle (/node_modules/typescript/lib/typescript.js:108600:13)
    at emitSourceFileOrBundle (/node_modules/typescript/lib/typescript.js:108523:13)
    at forEachEmittedFile (/node_modules/typescript/lib/typescript.js:108262:34)
    at Object.emitFiles (/node_modules/typescript/lib/typescript.js:108503:9)
    at emitWorker (/node_modules/typescript/lib/typescript.js:115635:33)
    at /node_modules/typescript/lib/typescript.js:115612:72

Dockerfile

# FROM docker/cypress/base:16.13.0
# FROM  cypress/base:16.16.0
# FROM  cypress/base:17.3.0
FROM  cypress/base:16.17.0
# FROM cypress/base:18.6.0
RUN apt-get update && \ 
     export DEBIAN_FRONTEND=noninteractive && \
        apt-get -y install \
        libgtk2.0-0 \
        libgtk-3-0 \
        libgbm-dev \
        libnotify-dev \
        libgconf-2-4 \
        libnss3 \
        libxss1 \
        libasound2 \
        libxtst6 xauth xvfb
RUN npm install

Kindly let me know the problem docker image? As same project run well locally on window 10

Reply all
Reply to author
Forward
0 new messages