cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.73k stars 3.16k forks source link

5.2.0 Regression: error message printing saying Couldn't find tsconfig.json #9048

Closed CodeTroopers closed 3 years ago

CodeTroopers commented 3 years ago

Current behavior

With version 5.2.0, 5.3.0, 5.4.0, 5.5.0 Using a tsconfig.json in the cypress directory. Run the command cypress open The output displays:

Couldn't find tsconfig.json. tsconfig-paths will be skipped

Desired behavior

Use the tsconfig.json : it works with version 5.1.0

Test code to reproduce

tsconfig.json in {root_project _directory}/cypress/

{
    "compilerOptions": {
        "strict": true,
        "sourceMap": false,
        "declaration": false,
        "module": "esnext",
        "moduleResolution": "node",
        "emitDecoratorMetadata": true,
        "esModuleInterop": false,
        "experimentalDecorators": true,
        "importHelpers": true,
        "resolveJsonModule": true,
        "allowSyntheticDefaultImports": true,
        "target": "es6",
        "lib": ["es6", "dom"],
        "types": ["cypress", "node"]
    },
    "include": ["**/*.ts"]
}

Versions

5.2.0, 5.3.0, 5.4.0, 5.5.0 Work with 5.1.0

jennifer-shehane commented 3 years ago

I do see this message printed to the console in version 5.2.0+ very likely introduced in this PR that added the tsconfi-path's npm module. https://github.com/cypress-io/cypress/pull/8557

Screen Shot 2020-11-02 at 1 23 55 PM

This error is coming from tsconfig-paths which we require. Error construction: https://github.com/dividab/tsconfig-paths/blob/c4ca84c0968680db11a6e10d9ebcdda220255575/src/config-loader.ts#L76 https://github.com/dividab/tsconfig-paths/blob/c4ca84c0968680db11a6e10d9ebcdda220255575/src/register.ts#L60

I'm not sure if this is an actual issue or just an extraneous error printing to the console.

@CodeTroopers Are you having a functional problem with the way Cypress is working with TypeScript?

Steps to Reproduce

mkdir sample-project
cd sample-project
npm init --force
npm i --save-dev cypress typescript
cypress open
cd cypress
touch tsconfig.json // paste contents in this file
cd ../
cypress open

tsconfig.json

{
    "compilerOptions": {
        "strict": true,
        "sourceMap": false,
        "declaration": false,
        "module": "esnext",
        "moduleResolution": "node",
        "emitDecoratorMetadata": true,
        "esModuleInterop": false,
        "experimentalDecorators": true,
        "importHelpers": true,
        "resolveJsonModule": true,
        "allowSyntheticDefaultImports": true,
        "target": "es6",
        "lib": ["es6", "dom"],
        "types": ["cypress", "node"]
    },
    "include": ["**/*.ts"]
}

DEBUG logs

 DEBUG=cypress:* cypress open
  cypress:cli:cli cli starts with arguments ["/Users/jennifer/.nvm/versions/node/v10.16.0/bin/node","/Users/jennifer/Dev/sample-project/node_modules/.bin/cypress","open"] +0ms
  cypress:cli NODE_OPTIONS is not set +0ms
  cypress:cli:cli program parsing arguments +2ms
  cypress:cli:cli opening Cypress +1ms
  cypress:cli parsed cli options {} +184ms
  cypress:cli opening from options {"project":"/Users/jennifer/Dev/sample-project"} +0ms
  cypress:cli command line arguments ["--project","/Users/jennifer/Dev/sample-project"] +0ms
  cypress:cli verifying Cypress app +0ms
  cypress:cli checking environment variables +1ms
  cypress:cli checking if executable exists /Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress +2ms
  cypress:cli Binary is executable? : true +2ms
  cypress:cli binaryDir is  /Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app +0ms
  cypress:cli Reading binary package.json from: /Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/package.json +0ms
  cypress:cli Found binary version 5.2.0 installed in: /Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app +3ms
  cypress:cli { verified: true } +4ms
  cypress:cli is Verified ? true +2ms
  cypress:cli needs to start own Xvfb? false +0ms
  cypress:cli spawning, should retry on display problem? false +0ms
  cypress:cli spawning Cypress with executable: /Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress +3ms
  cypress:cli spawn args [ '--no-sandbox', '--', '--project', '/Users/jennifer/Dev/sample-project', '--cwd', '/Users/jennifer/Dev/sample-project' ] { detached: false, stdio: 'inherit' } +1ms
  cypress:ts Running without ts-node hook in environment "production" +0ms
  cypress:server:appdata path: /Users/jennifer/Library/Application Support/Cypress/cy/production/browsers +0ms
  cypress:server:util:node_options NODE_OPTIONS check passed, not forking { NODE_OPTIONS: '--max-http-header-size=1048576 --http-parser=legacy' } +0ms
  cypress:server:util:node_options restoring NODE_OPTIONS { NODE_OPTIONS: '--max-http-header-size=1048576 --http-parser=legacy', ORIGINAL_NODE_OPTIONS: undefined } +1ms
  cypress:server:cypress starting cypress with argv [ '/Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress', '--no-sandbox', '--', '--project', '/Users/jennifer/Dev/sample-project', '--cwd', '/Users/jennifer/Dev/sample-project' ] +0ms
  cypress:server:args argv array: [ '/Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress', '--no-sandbox', '--project', '/Users/jennifer/Dev/sample-project', '--cwd', '/Users/jennifer/Dev/sample-project' ] +0ms
  cypress:server:args argv parsed: { _: [ '/Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress' ], sandbox: false, project: '/Users/jennifer/Dev/sample-project', cwd: '/Users/jennifer/Dev/sample-project', invokedFromCli: true } +2ms
  cypress:server:util:proxy found proxy environment variables {} +0ms
  cypress:server:args options { _: [ '/Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress' ], sandbox: false, project: '/Users/jennifer/Dev/sample-project', cwd: '/Users/jennifer/Dev/sample-project', invokedFromCli: true, config: {} } +1ms
  cypress:server:args argv options: { _: [ '/Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress' ], sandbox: false, project: '/Users/jennifer/Dev/sample-project', cwd: '/Users/jennifer/Dev/sample-project', invokedFromCli: true, config: {}, projectRoot: '/Users/jennifer/Dev/sample-project' } +0ms
  cypress:server:cypress from argv [ '/Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress', '--no-sandbox', '--project', '/Users/jennifer/Dev/sample-project', '--cwd', '/Users/jennifer/Dev/sample-project' ] got options { _: [ '/Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress' ], sandbox: false, project: '/Users/jennifer/Dev/sample-project', cwd: '/Users/jennifer/Dev/sample-project', invokedFromCli: true, config: {}, projectRoot: '/Users/jennifer/Dev/sample-project' } +4ms
  cypress:server:appdata path: /Users/jennifer/Library/Application Support/Cypress/cy/production +237ms
  cypress:server:cypress starting in mode interactive with options { _: [ '/Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/MacOS/Cypress' ], sandbox: false, project: '/Users/jennifer/Dev/sample-project', cwd: '/Users/jennifer/Dev/sample-project', invokedFromCli: true, config: {}, projectRoot: '/Users/jennifer/Dev/sample-project' } +97ms
  cypress:server:cypress running Electron currently +0ms
  cypress:server:appdata path: /Users/jennifer/Library/Application Support/Cypress/cy/production +123ms
  cypress:server:appdata path: /Users/jennifer/Library/Application Support/Cypress/cy/production/cache +306ms
  cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
  cypress:server:util:process_profiler ┌─────────┬───────────────────┬──────────────┬────────────────┬────────────┬────────────────┬──────────┬──────────────┬─────────────┐
  cypress:server:util:process_profiler │ (index) │       group       │ processCount │      pids      │ cpuPercent │ meanCpuPercent │ memRssMb │ meanMemRssMb │ maxMemRssMb │
  cypress:server:util:process_profiler ├─────────┼───────────────────┼──────────────┼────────────────┼────────────┼────────────────┼──────────┼──────────────┼─────────────┤
  cypress:server:util:process_profiler │    0    │     'cypress'     │      1       │    '65948'     │   105.7    │     105.7      │   77.6   │     77.6     │    77.6     │
  cypress:server:util:process_profiler │    1    │      'other'      │      2       │ '65949, 65950' │     0      │       0        │   2.15   │     2.15     │    2.15     │
  cypress:server:util:process_profiler │    2    │ 'electron-shared' │      1       │    '65951'     │     0      │       0        │   0.36   │     0.36     │    0.36     │
  cypress:server:util:process_profiler │    3    │      'TOTAL'      │      4       │      '-'       │   105.7    │     105.7      │  80.11   │    80.11     │    80.11    │
  cypress:server:util:process_profiler └─────────┴───────────────────┴──────────────┴────────────────┴────────────┴────────────────┴──────────┴──────────────┴─────────────┘ +0ms
  cypress:server:saved_state making saved state from /Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/server +0ms
  cypress:server:saved_state for project path /Users/jennifer/Dev/sample-project +0ms
  cypress:server:saved_state state path for project /Users/jennifer/Dev/sample-project +1ms
  cypress:server:appdata path: /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +2s
  cypress:server:saved_state full state path /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:saved_state making new state file around /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +1ms
  cypress:server:file get values from /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:file attempt to get lock on /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +1ms
  cypress:server:file getting lock succeeded or failed for /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +2ms
  cypress:server:file read /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:file read succeeded or failed for /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +2ms
  cypress:server:file attempt to unlock /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:file unlock succeeded or failed for /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:windows creating electron window with options { backgroundColor: '#dfe2e4', width: 800, height: 550, minWidth: 458, minHeight: 400, x: null, y: null, type: 'INDEX', devTools: false, trackState: { width: 'appWidth', height: 'appHeight', x: 'appX', y: 'appY', devTools: 'isAppDevToolsOpen' }, onBlur: [Function: onBlur], onFocus: [Function: onFocus], onClose: [Function: onClose], show: true, frame: true, transparent: false, webPreferences: { preload: '/Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/server/lib/ipc/ipc.js', partition: null, webSecurity: false, nodeIntegration: false, backgroundThrottling: false, backgroundColor: '#dfe2e4', transparent: false }, url: 'file:///Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/desktop-gui/dist/index.html', contextMenu: false, recordFrameRate: null, onCrashed: [Function: onCrashed], onNewWindow: [Function: onNewWindow] } +0ms
  cypress:server:events got request for event: on:menu:clicked, undefined +0ms
  cypress:server:events got request for event: get:options, undefined +0ms
  cypress:server:events got request for event: get:current:user, undefined +1ms
  cypress:server:file get values from /Users/jennifer/Library/Application Support/Cypress/cy/production/cache +567ms
  cypress:server:file attempt to get lock on /Users/jennifer/Library/Application Support/Cypress/cy/production/cache +0ms
  cypress:server:events sending ipc data { type: 'get:options', data: { id: 0.4820012324301386, data: { _: [Array], sandbox: false, project: '/Users/jennifer/Dev/sample-project', cwd: '/Users/jennifer/Dev/sample-project', invokedFromCli: true, config: {}, projectRoot: '/Users/jennifer/Dev/sample-project', onFocusTests: null, os: 'darwin', windowOpenFn: null, getWindowByWebContentsFn: null, version: '5.2.0' } }, originalData: { id: 0.4820012324301386, data: { _: [Array], sandbox: false, project: '/Users/jennifer/Dev/sample-project', cwd: '/Users/jennifer/Dev/sample-project', invokedFromCli: true, config: {}, projectRoot: '/Users/jennifer/Dev/sample-project', onFocusTests: [Function: onFocusTests], os: 'darwin', windowOpenFn: [Function: open], getWindowByWebContentsFn: [Function: getByWebContents], version: '5.2.0' } } } +2ms
  cypress:server:file getting lock succeeded or failed for /Users/jennifer/Library/Application Support/Cypress/cy/production/cache +2ms
  cypress:server:file read /Users/jennifer/Library/Application Support/Cypress/cy/production/cache +0ms
  cypress:server:file read succeeded or failed for /Users/jennifer/Library/Application Support/Cypress/cy/production/cache +1ms
  cypress:server:file attempt to unlock /Users/jennifer/Library/Application Support/Cypress/cy/production/cache +0ms
  cypress:server:file unlock succeeded or failed for /Users/jennifer/Library/Application Support/Cypress/cy/production/cache +0ms
  cypress:server:events sending ipc data { type: 'get:current:user', data: { id: 0.16435784973890466, data: { name: 'Jennifer Shehane', email: 'shehane.jennifer@gmail.com', authToken: 's:1B_...4Cxpw' } }, originalData: { id: 0.16435784973890466, data: { name: 'Jennifer Shehane', email: 'shehane.jennifer@gmail.com', authToken: 's:1B_...4Cxpw' } } } +3ms
  cypress:server:events got request for event: on:focus:tests, undefined +4s
  cypress:server:events got request for event: on:spec:changed, undefined +0ms
  cypress:server:events got request for event: on:config:changed, undefined +0ms
  cypress:server:events got request for event: on:project:error, undefined +0ms
  cypress:server:events got request for event: on:project:warning, undefined +0ms
  cypress:server:events got request for event: open:project, '/Users/jennifer/Dev/sample-project' +0ms
  cypress:server:events open:project +1ms
  cypress:server:browsers getAllBrowsersWith { nameOrPath: undefined } +0ms
  cypress:server:browsers:utils getBrowsers +0ms
  cypress:launcher detecting if the following browsers are present [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', versionRegex: /Google Chrome (\S+)/m, binary: [ 'google-chrome', 'chrome', 'google-chrome-stable' ] }, { name: 'chromium', family: 'chromium', channel: 'stable', displayName: 'Chromium', versionRegex: /Chromium (\S+)/m, binary: [ 'chromium-browser', 'chromium' ] }, { name: 'chrome', family: 'chromium', channel: 'canary', displayName: 'Canary', versionRegex: /Google Chrome Canary (\S+)/m, binary: 'google-chrome-canary' }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', versionRegex: /^Mozilla Firefox ([^\sab]+)$/m, binary: 'firefox' }, { name: 'firefox', family: 'firefox', channel: 'dev', displayName: 'Firefox Developer Edition', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m, binary: [ 'firefox-developer-edition', 'firefox' ] }, { name: 'firefox', family: 'firefox', channel: 'nightly', displayName: 'Firefox Nightly', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', versionRegex: /^Mozilla Firefox (\S+a\S*)$/m, binary: [ 'firefox-nightly', 'firefox-trunk' ] }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', versionRegex: /Microsoft Edge (\S+)/m, binary: 'edge' }, { name: 'edge', family: 'chromium', channel: 'canary', displayName: 'Edge Canary', versionRegex: /Microsoft Edge Canary (\S+)/m, binary: 'edge-canary' }, { name: 'edge', family: 'chromium', channel: 'beta', displayName: 'Edge Beta', versionRegex: /Microsoft Edge Beta (\S+)/m, binary: 'edge-beta' }, { name: 'edge', family: 'chromium', channel: 'dev', displayName: 'Edge Dev', versionRegex: /Microsoft Edge Dev (\S+)/m, binary: 'edge-dev' } ] +0ms
  cypress:server:events got request for event: updater:check, undefined +3ms
  cypress:server:updater checking for new version of Cypress. current version is 5.2.0 +0ms
  cypress:launcher checking one browser chrome +12ms
  cypress:launcher looking up chrome on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/Google Chrome id com.google.Chrome +1ms
  cypress:launcher looking for bundle id com.google.Chrome using command: mdfind 'kMDItemCFBundleIdentifier=="com.google.Chrome"' | head -1 +0ms
  cypress:launcher checking one browser chrome +8ms
  cypress:launcher looking up chrome on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/Google Chrome id com.google.Chrome +0ms
  cypress:launcher looking for bundle id com.google.Chrome using command: mdfind 'kMDItemCFBundleIdentifier=="com.google.Chrome"' | head -1 +0ms
  cypress:launcher checking one browser chrome +7ms
  cypress:launcher looking up chrome on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/Google Chrome id com.google.Chrome +0ms
  cypress:launcher looking for bundle id com.google.Chrome using command: mdfind 'kMDItemCFBundleIdentifier=="com.google.Chrome"' | head -1 +0ms
  cypress:launcher could not find com.google.Chrome +11ms
  cypress:launcher looking for application /Applications/Google Chrome.app +1ms
  cypress:launcher reading property file "/Applications/Google Chrome.app/Contents/Info.plist" +0ms
  cypress:launcher could not find com.google.Chrome +1ms
  cypress:launcher looking for application /Applications/Google Chrome.app +0ms
  cypress:launcher reading property file "/Applications/Google Chrome.app/Contents/Info.plist" +0ms
  cypress:launcher could not find com.google.Chrome +0ms
  cypress:launcher looking for application /Applications/Google Chrome.app +0ms
  cypress:launcher reading property file "/Applications/Google Chrome.app/Contents/Info.plist" +0ms
  cypress:network:agent addRequest called { isHttps: true, href: 'https://download.cypress.io/desktop.json' } +0ms
  cypress:network:connect beginning getAddress { hostname: 'download.cypress.io', port: 443 } +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Google Chrome.app', version: '86.0.4240.111' } +23ms
  cypress:launcher setting major version for {"name":"chrome","family":"chromium","channel":"stable","displayName":"Chrome","version":"86.0.4240.111","path":"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"} +1ms
  cypress:launcher browser chrome version 86.0.4240.111 major version 86 +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Google Chrome.app', version: '86.0.4240.111' } +6ms
  cypress:launcher setting major version for {"name":"chrome","family":"chromium","channel":"stable","displayName":"Chrome","version":"86.0.4240.111","path":"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"} +0ms
  cypress:launcher browser chrome version 86.0.4240.111 major version 86 +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Google Chrome.app', version: '86.0.4240.111' } +7ms
  cypress:launcher setting major version for {"name":"chrome","family":"chromium","channel":"stable","displayName":"Chrome","version":"86.0.4240.111","path":"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"} +0ms
  cypress:launcher browser chrome version 86.0.4240.111 major version 86 +0ms
  cypress:launcher checking one browser chromium +0ms
  cypress:launcher looking up chromium on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/Chromium id org.chromium.Chromium +0ms
  cypress:launcher looking for bundle id org.chromium.Chromium using command: mdfind 'kMDItemCFBundleIdentifier=="org.chromium.Chromium"' | head -1 +0ms
  cypress:launcher checking one browser chromium +7ms
  cypress:launcher looking up chromium on darwin platform +1ms
  cypress:launcher looking for app Contents/MacOS/Chromium id org.chromium.Chromium +0ms
  cypress:launcher looking for bundle id org.chromium.Chromium using command: mdfind 'kMDItemCFBundleIdentifier=="org.chromium.Chromium"' | head -1 +0ms
  cypress:launcher could not find org.chromium.Chromium +9ms
  cypress:launcher looking for application /Applications/Chromium.app +0ms
  cypress:launcher reading property file "/Applications/Chromium.app/Contents/Info.plist" +0ms
  cypress:launcher could not find org.chromium.Chromium +1ms
  cypress:launcher looking for application /Applications/Chromium.app +0ms
  cypress:launcher reading property file "/Applications/Chromium.app/Contents/Info.plist" +0ms
  cypress:network:connect got addresses { hostname: 'download.cypress.io', port: 443, addresses: [ { address: '104.26.7.176', family: 4 }, { address: '104.26.6.176', family: 4 }, { address: '172.67.69.12', family: 4 } ] } +46ms
  cypress:launcher got plist: { foundPath: '/Applications/Chromium.app', version: '81.0.4044.0' } +8ms
  cypress:launcher setting major version for {"name":"chromium","family":"chromium","channel":"stable","displayName":"Chromium","version":"81.0.4044.0","path":"/Applications/Chromium.app/Contents/MacOS/Chromium"} +1ms
  cypress:launcher browser chromium version 81.0.4044.0 major version 81 +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Chromium.app', version: '81.0.4044.0' } +4ms
  cypress:launcher setting major version for {"name":"chromium","family":"chromium","channel":"stable","displayName":"Chromium","version":"81.0.4044.0","path":"/Applications/Chromium.app/Contents/MacOS/Chromium"} +0ms
  cypress:launcher browser chromium version 81.0.4044.0 major version 81 +0ms
  cypress:launcher checking one browser chrome +0ms
  cypress:launcher looking up chrome on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/Google Chrome Canary id com.google.Chrome.canary +0ms
  cypress:launcher looking for bundle id com.google.Chrome.canary using command: mdfind 'kMDItemCFBundleIdentifier=="com.google.Chrome.canary"' | head -1 +0ms
  cypress:launcher could not find com.google.Chrome.canary +6ms
  cypress:launcher looking for application /Applications/Google Chrome Canary.app +0ms
  cypress:launcher reading property file "/Applications/Google Chrome Canary.app/Contents/Info.plist" +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Google Chrome Canary.app', version: '88.0.4310.0' } +8ms
  cypress:launcher setting major version for {"name":"chrome","family":"chromium","channel":"canary","displayName":"Canary","version":"88.0.4310.0","path":"/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"} +0ms
  cypress:launcher browser chrome version 88.0.4310.0 major version 88 +1ms
  cypress:launcher checking one browser firefox +0ms
  cypress:launcher looking up firefox on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/firefox-bin id org.mozilla.firefox +0ms
  cypress:launcher looking for bundle id org.mozilla.firefox using command: mdfind 'kMDItemCFBundleIdentifier=="org.mozilla.firefox"' | head -1 +0ms
  cypress:launcher could not find org.mozilla.firefox +7ms
  cypress:launcher looking for application /Applications/Firefox.app +1ms
  cypress:launcher reading property file "/Applications/Firefox.app/Contents/Info.plist" +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Firefox.app', version: '81.0.2' } +3ms
  cypress:launcher setting major version for {"name":"firefox","family":"firefox","channel":"stable","displayName":"Firefox","version":"81.0.2","path":"/Applications/Firefox.app/Contents/MacOS/firefox-bin","info":"Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue)."} +0ms
  cypress:launcher browser firefox version 81.0.2 major version 81 +0ms
  cypress:launcher checking one browser firefox +0ms
  cypress:launcher looking up firefox on darwin platform +1ms
  cypress:launcher looking for app Contents/MacOS/firefox-bin id org.mozilla.firefoxdeveloperedition +0ms
  cypress:launcher looking for bundle id org.mozilla.firefoxdeveloperedition using command: mdfind 'kMDItemCFBundleIdentifier=="org.mozilla.firefoxdeveloperedition"' | head -1 +0ms
  cypress:launcher checking one browser firefox +5ms
  cypress:launcher looking up firefox on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/firefox-bin id org.mozilla.firefoxdeveloperedition +1ms
  cypress:launcher looking for bundle id org.mozilla.firefoxdeveloperedition using command: mdfind 'kMDItemCFBundleIdentifier=="org.mozilla.firefoxdeveloperedition"' | head -1 +0ms
  cypress:launcher could not find org.mozilla.firefoxdeveloperedition +6ms
  cypress:launcher looking for application /Applications/Firefox Developer Edition.app +0ms
  cypress:launcher reading property file "/Applications/Firefox Developer Edition.app/Contents/Info.plist" +0ms
  cypress:launcher could not find org.mozilla.firefoxdeveloperedition +1ms
  cypress:launcher looking for application /Applications/Firefox Developer Edition.app +0ms
  cypress:launcher reading property file "/Applications/Firefox Developer Edition.app/Contents/Info.plist" +0ms
  cypress:network:agent got family { family: 4, href: 'https://download.cypress.io/desktop.json' } +101ms
  cypress:launcher got plist: { foundPath: '/Applications/Firefox Developer Edition.app', version: '78.0' } +20ms
  cypress:launcher setting major version for {"name":"firefox","family":"firefox","channel":"dev","displayName":"Firefox Developer Edition","version":"78.0","path":"/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin","info":"Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue)."} +0ms
  cypress:launcher browser firefox version 78.0 major version 78 +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Firefox Developer Edition.app', version: '78.0' } +5ms
  cypress:launcher setting major version for {"name":"firefox","family":"firefox","channel":"dev","displayName":"Firefox Developer Edition","version":"78.0","path":"/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin","info":"Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue)."} +1ms
  cypress:launcher browser firefox version 78.0 major version 78 +0ms
  cypress:launcher checking one browser firefox +0ms
  cypress:launcher looking up firefox on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/firefox-bin id org.mozilla.nightly +0ms
  cypress:launcher looking for bundle id org.mozilla.nightly using command: mdfind 'kMDItemCFBundleIdentifier=="org.mozilla.nightly"' | head -1 +0ms
  cypress:launcher checking one browser firefox +6ms
  cypress:launcher looking up firefox on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/firefox-bin id org.mozilla.nightly +0ms
  cypress:launcher looking for bundle id org.mozilla.nightly using command: mdfind 'kMDItemCFBundleIdentifier=="org.mozilla.nightly"' | head -1 +0ms
  cypress:launcher could not find org.mozilla.nightly +7ms
  cypress:launcher looking for application /Applications/Firefox Nightly.app +0ms
  cypress:launcher reading property file "/Applications/Firefox Nightly.app/Contents/Info.plist" +0ms
  cypress:launcher could not find org.mozilla.nightly +0ms
  cypress:launcher looking for application /Applications/Firefox Nightly.app +0ms
  cypress:launcher reading property file "/Applications/Firefox Nightly.app/Contents/Info.plist" +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Firefox Nightly.app', version: '79.0a1' } +8ms
  cypress:launcher setting major version for {"name":"firefox","family":"firefox","channel":"nightly","displayName":"Firefox Nightly","version":"79.0a1","path":"/Applications/Firefox Nightly.app/Contents/MacOS/firefox-bin","info":"Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue)."} +0ms
  cypress:launcher browser firefox version 79.0a1 major version 79 +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Firefox Nightly.app', version: '79.0a1' } +2ms
  cypress:launcher setting major version for {"name":"firefox","family":"firefox","channel":"nightly","displayName":"Firefox Nightly","version":"79.0a1","path":"/Applications/Firefox Nightly.app/Contents/MacOS/firefox-bin","info":"Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue)."} +0ms
  cypress:launcher browser firefox version 79.0a1 major version 79 +1ms
  cypress:launcher checking one browser edge +0ms
  cypress:launcher looking up edge on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/Microsoft Edge id com.microsoft.Edge +0ms
  cypress:launcher looking for bundle id com.microsoft.Edge using command: mdfind 'kMDItemCFBundleIdentifier=="com.microsoft.Edge"' | head -1 +0ms
  cypress:launcher could not find com.microsoft.Edge +8ms
  cypress:launcher looking for application /Applications/Microsoft Edge.app +0ms
  cypress:launcher reading property file "/Applications/Microsoft Edge.app/Contents/Info.plist" +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Microsoft Edge.app', version: '86.0.622.58' } +4ms
  cypress:launcher setting major version for {"name":"edge","family":"chromium","channel":"stable","displayName":"Edge","version":"86.0.622.58","path":"/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge"} +0ms
  cypress:launcher browser edge version 86.0.622.58 major version 86 +0ms
  cypress:launcher checking one browser edge +1ms
  cypress:launcher looking up edge on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/Microsoft Edge Canary id com.microsoft.Edge.Canary +0ms
  cypress:launcher looking for bundle id com.microsoft.Edge.Canary using command: mdfind 'kMDItemCFBundleIdentifier=="com.microsoft.Edge.Canary"' | head -1 +0ms
  cypress:launcher could not find com.microsoft.Edge.Canary +6ms
  cypress:launcher looking for application /Applications/Microsoft Edge Canary.app +0ms
  cypress:launcher reading property file "/Applications/Microsoft Edge Canary.app/Contents/Info.plist" +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Microsoft Edge Canary.app', version: '88.0.685.0' } +8ms
  cypress:launcher setting major version for {"name":"edge","family":"chromium","channel":"canary","displayName":"Edge Canary","version":"88.0.685.0","path":"/Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary"} +1ms
  cypress:launcher browser edge version 88.0.685.0 major version 88 +0ms
  cypress:launcher checking one browser edge +0ms
  cypress:launcher looking up edge on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/Microsoft Edge Beta id com.microsoft.Edge.Beta +0ms
  cypress:launcher looking for bundle id com.microsoft.Edge.Beta using command: mdfind 'kMDItemCFBundleIdentifier=="com.microsoft.Edge.Beta"' | head -1 +0ms
  cypress:launcher could not find com.microsoft.Edge.Beta +7ms
  cypress:launcher looking for application /Applications/Microsoft Edge Beta.app +0ms
  cypress:launcher reading property file "/Applications/Microsoft Edge Beta.app/Contents/Info.plist" +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Microsoft Edge Beta.app', version: '87.0.664.18' } +4ms
  cypress:launcher setting major version for {"name":"edge","family":"chromium","channel":"beta","displayName":"Edge Beta","version":"87.0.664.18","path":"/Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Beta"} +0ms
  cypress:launcher browser edge version 87.0.664.18 major version 87 +0ms
  cypress:launcher checking one browser edge +0ms
  cypress:launcher looking up edge on darwin platform +0ms
  cypress:launcher looking for app Contents/MacOS/Microsoft Edge Dev id com.microsoft.Edge.Dev +0ms
  cypress:launcher looking for bundle id com.microsoft.Edge.Dev using command: mdfind 'kMDItemCFBundleIdentifier=="com.microsoft.Edge.Dev"' | head -1 +0ms
  cypress:launcher could not find com.microsoft.Edge.Dev +7ms
  cypress:launcher looking for application /Applications/Microsoft Edge Dev.app +0ms
  cypress:launcher reading property file "/Applications/Microsoft Edge Dev.app/Contents/Info.plist" +0ms
  cypress:launcher got plist: { foundPath: '/Applications/Microsoft Edge Dev.app', version: '88.0.680.1' } +2ms
  cypress:launcher setting major version for {"name":"edge","family":"chromium","channel":"dev","displayName":"Edge Dev","version":"88.0.680.1","path":"/Applications/Microsoft Edge Dev.app/Contents/MacOS/Microsoft Edge Dev"} +1ms
  cypress:launcher browser edge version 88.0.680.1 major version 88 +0ms
  cypress:server:browsers:utils found browsers { browsers: [ ... ] } +250ms
  cypress:server:browsers:utils adding Electron browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '83.0.4103.122', path: '', majorVersion: 83, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } +1ms
  cypress:server:events setting found 11 browsers on the config +250ms
  cypress:server:open_project open_project create /Users/jennifer/Dev/sample-project +0ms
  cypress:server:open_project and options { onFocusTests: [Function: onFocusTests], onSpecChanged: [Function: onSpecChanged], onSettingsChanged: [Function: onSettingsChanged], onError: [Function: onError], onWarning: [Function: onWarning] } +0ms
  cypress:server:project Project created /Users/jennifer/Dev/sample-project +0ms
  cypress:server:open_project opening project /Users/jennifer/Dev/sample-project +0ms
  cypress:server:open_project and options { ... } +0ms
  cypress:server:project opening project instance /Users/jennifer/Dev/sample-project +33ms
  cypress:server:project project open options { ... } +0ms
  cypress:server:project project options { ... } +1ms
  cypress:server:config setting config object +0ms
  cypress:server:config config is {} +0ms
  cypress:server:config merged config with options, got { ... ] } +0ms
  cypress:server:config using CYPRESS_INTERNAL_ENV production +2ms
  cypress:server:config resolved config is { ... } +1ms
  cypress:server:validation browsers [ { ... ] +0ms
  cypress:server:config setting support file /Users/jennifer/Dev/sample-project/cypress/support +3ms
  cypress:server:config for project root /Users/jennifer/Dev/sample-project +0ms
  cypress:server:config resolved support file /Users/jennifer/Dev/sample-project/cypress/support/index.js +0ms
  cypress:server:config set support folder /Users/jennifer/Dev/sample-project/cypress/support +1ms
  cypress:server:config setting plugins file /Users/jennifer/Dev/sample-project/cypress/plugins +0ms
  cypress:server:config for project root /Users/jennifer/Dev/sample-project +0ms
  cypress:server:config set pluginsFile to /Users/jennifer/Dev/sample-project/cypress/plugins/index.js +0ms
  cypress:server:config set scaffold paths +1ms
  cypress:server:scaffold scaffolded files [..."] +0ms
  cypress:server:config got file tree +2ms
  cypress:server:project get saved state +21ms
  cypress:server:saved_state making saved state from /Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/server +4s
  cypress:server:saved_state for project path /Users/jennifer/Dev/sample-project +0ms
  cypress:server:saved_state state path for project /Users/jennifer/Dev/sample-project +0ms
  cypress:server:appdata path: /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +4s
  cypress:server:saved_state full state path /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +1ms
  cypress:server:file get values from /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +4s
  cypress:server:file attempt to get lock on /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:file getting lock succeeded or failed for /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +1ms
  cypress:server:file read /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:file read succeeded or failed for /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:file attempt to unlock /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:file unlock succeeded or failed for /Users/jennifer/Library/Application Support/Cypress/cy/production/projects/sample-project-5c94b8ba23e24d0c4620a98378edf50f/state.json +0ms
  cypress:server:scaffold determine if new project by globbing files in { integrationFolder: '/Users/jennifer/Dev/sample-project/cypress/integration' } +4ms
  cypress:server:scaffold found 19 files in folder /Users/jennifer/Dev/sample-project/cypress/integration +16ms
  cypress:server:scaffold determine if we should scaffold: +0ms
  cypress:server:scaffold - empty? false +1ms
  cypress:server:scaffold - different number of files? false +0ms
  cypress:server:scaffold - different file names? false +0ms
  cypress:server:scaffold - same sizes? true +3ms
  cypress:server:scaffold untouched scaffold true modal closed true +0ms
  cypress:server:project scaffolding with plugins file /Users/jennifer/Dev/sample-project/cypress/plugins/index.js +23ms
  cypress:server:scaffold plugins folder /Users/jennifer/Dev/sample-project/cypress/plugins +0ms
  cypress:server:scaffold verify scaffolding in /Users/jennifer/Dev/sample-project/cypress/plugins +0ms
  cypress:server:scaffold folder /Users/jennifer/Dev/sample-project/cypress/plugins already exists +1ms
  cypress:server:plugins plugins.init /Users/jennifer/Dev/sample-project/cypress/plugins/index.js +0ms
  cypress:server:plugins forking to run /Users/jennifer/Library/Caches/Cypress/5.2.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/index.js +2ms
  cypress:server:plugins:child pluginsFile: /Users/jennifer/Dev/sample-project/cypress/plugins/index.js +0ms
  cypress:server:plugins:child project root: /Users/jennifer/Dev/sample-project +1ms
  cypress:server:plugins resolving typescript with options { basedir: '/Users/jennifer/Dev/sample-project' } +0ms
  cypress:server:plugins resolved typescript /Users/jennifer/Dev/sample-project/node_modules/typescript/lib/typescript.js +3ms
  cypress:server:ts-node typescript path: /Users/jennifer/Dev/sample-project/node_modules/typescript/lib/typescript.js +0ms
  cypress:server:ts-node registering project TS with options { compiler: '/Users/jennifer/Dev/sample-project/node_modules/typescript/lib/typescript.js', compilerOptions: { module: 'CommonJS' }, dir: '/Users/jennifer/Dev/sample-project/cypress/plugins', transpileOnly: true } +0ms
Couldn't find tsconfig.json. tsconfig-paths will be skipped
CodeTroopers commented 3 years ago

@jennifer-shehane I have not seen functional problem. But i can't tell if my tsconfig file is really used or not

ovartem commented 3 years ago

hi, are there any updates on this?

mayrbenjamin92 commented 3 years ago

Hi there!

We are also facing this issue. Any updates on this?

BryanSummers14 commented 3 years ago

We are also running into this issue throwing an error Error: Cannot find module '@{company-name}/testing/selectors'. Does anyone even have any ideas on debugging to see if it's user error passing in the wrong path? It works just fine running it with nx, but our pipeline needs to run cypress directly and that's where we see this issue (looks like due to it not getting the correct tsconfig with the path aliasing)

EDIT: I don't know if this will help anyone else, but in our situation using NX locally but running Cypress directly in our CI turns out it was this line in the plugins/index file on('file:preprocessor', preprocessTypescript(config)); Our solution was to use a separate plugin/index file for our CI that omitted the NX preprocessor since we were already using a separate cypress.json config file

pedroresende commented 3 years ago

Any news about this ?

nishant994 commented 3 years ago

Any update on this?

meghamanjunath2015 commented 3 years ago

any news about this? I am receiving the same error

Hazzard17h commented 3 years ago

To me it seems this is just an extraneous error printing to the console. In my case the real problem was I just forget to export DISPLAY environment variable, as I'm working under WSL, and it results that cypress open just stucks, and that is the only message printed. After setting DISPLAY all work as usual, and I notice that this error always come out without any real problem.

krysalead commented 3 years ago

Hi,

the main issue here is knowing if we are using the tsconfig.json under cypress folder or something by default that we have no way to change. But so far on our side nothing impact our way of working.

gubagu commented 3 years ago

Same issue on Cypress 6.5.0 i don't even use typescript

steverb1 commented 3 years ago

This is a functional issue for us. We not only see the error message on startup, but can't run any tests based on typescript. When trying to run a test, we see: "You are attempting to preprocess a TypeScript file, but do not have TypeScript configured." We are on version 6.7.1

cypress-bot[bot] commented 3 years ago

The code for this is done in cypress-io/cypress#15828, but has yet to be released. We'll update this issue and reference the changelog when it's released.

cypress-bot[bot] commented 3 years ago

Released in 7.0.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v7.0.1, please open a new issue.