I'm guessing this is more of an issue with cypress component testing in general.
I cloned this repository on my Windows PC and ran with yarn cypress open-ct but the path to the project was not able to resolved correctly.
PS C:\git\cypress-react-template> yarn cypress open-ct
This ultimate gives an error showing the path was not parsed correctly.
Module not found: Error: Can't resolve 'C:gitcypress-react-template
Full output:
yarn run v1.22.10
$ C:\git\cypress-react-template\node_modules\.bin\cypress open-ct
(node:36940) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `Cypress --trace-warnings ...` to show where the warning was created)
[0406/215450.759:ERROR:registration_protocol_win.cc(102)] CreateFile: The system cannot find the file specified. (0x2)
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
i 「wds」: Project is running at http://localhost:51560/webpack-dev-server/
i 「wds」: webpack output is served from /__cypress/src
i 「wds」: Content not from webpack is served from C:\git\cypress-react-template
GET /__/ 200 5.432 ms - -
(node:36940) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
GET /__cypress/runner/cypress_runner.css 200 6.577 ms - -
POST /ListAccounts?gpsia=1&source=ChromiumBrowser&json=standard 200 133.106 ms - -
GET /chrome-variations/seed?osname=win&channel=stable&milestone=89 200 156.715 ms - -
[0406/215518.523:ERROR:registration_protocol_win.cc(102)] CreateFile: The system cannot find the file specified. (0x2)
GET /__cypress/runner/cypress_runner.js 200 5.829 ms - -
GET /__cypress/static/favicon.ico 200 1.738 ms - -
GET /__/ctChunk-reactdevtools.css 200 2.239 ms - 304
GET /__/ctChunk-reactdevtools.86c1f8ce89545f52e3db.js 200 2.605 ms - -
GET /__/vendors~ctChunk-reactdevtools.9c46368685bb4c265257.js 200 2.825 ms - -
GET /__cypress/runner/fonts/fa-solid-900.woff2 200 1.361 ms - 76120
GET /v1/pages/ChNDaHJvbWUvODkuMC40Mzg5LjkwEh4Jxkx2ZXSPanoSBQ2RYZVOEgUNL4g-ghIFDZFhlU4=?alt=proto 200 417.268 ms - -
× 「wdm」: Hash: 51edc37cbbc46ad8d2c7
Version: webpack 4.44.2
Time: 6829ms
Built at: 04/06/2021 9:55:23 PM
Asset Size Chunks Chunk Names
asset-manifest.json 317 bytes [emitted]
index.html 411 bytes [emitted]
runtime-main.js 33.5 KiB runtime-main [emitted] runtime-main
runtime-main.js.map 34.8 KiB runtime-main [emitted] [dev] runtime-main
static/js/main.chunk.js 1.28 KiB main [emitted] main
static/js/main.chunk.js.map 854 bytes main [emitted] [dev] main
Entrypoint main = runtime-main.js runtime-main.js.map static/js/main.chunk.js static/js/main.chunk.js.map
[./node_modules/@cypress/webpack-dev-server/dist/browser.js] 566 bytes {main} [built]
ERROR in ./node_modules/@cypress/webpack-dev-server/dist/browser.js
Module not found: Error: Can't resolve 'C:gitcypress-react-template
ode_moduleslazy-compile-webpack-pluginlibloadersapi.js' in 'C:\git\cypress-react-template\node_modules\@cypress\webpack-dev-server\dist'
@ ./node_modules/@cypress/webpack-dev-server/dist/browser.js 3:10-112
Child HtmlWebpackCompiler:
Asset Size Chunks Chunk Names
__child-HtmlWebpackPlugin_0 6.06 KiB HtmlWebpackPlugin_0 HtmlWebpackPlugin_0
__child-HtmlWebpackPlugin_1 4.76 KiB HtmlWebpackPlugin_1 HtmlWebpackPlugin_1
Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
Entrypoint HtmlWebpackPlugin_1 = __child-HtmlWebpackPlugin_1
[./node_modules/html-webpack-plugin/lib/loader.js!./node_modules/@cypress/webpack-dev-server/index-template.html] 545 bytes {HtmlWebpackPlugin_1} [built]
[./node_modules/html-webpack-plugin/lib/loader.js!./public/index.html] 2.04 KiB {HtmlWebpackPlugin_0} [built]
i 「wdm」: Failed to compile.
I'm guessing this is more of an issue with cypress component testing in general.
I cloned this repository on my Windows PC and ran with
yarn cypress open-ct
but the path to the project was not able to resolved correctly.PS C:\git\cypress-react-template> yarn cypress open-ct
This ultimate gives an error showing the path was not parsed correctly.Module not found: Error: Can't resolve 'C:gitcypress-react-template
Full output: