-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fatal error on first launch of component testing #27607
Comments
It seems that there are some compatibility issues! I suggest that you compare to the example in https://github.com/cypress-io/cypress-component-testing-apps/tree/main/svelte-webpack-ts and the https://github.com/cypress-io/cypress-component-testing-apps/blob/main/svelte-webpack-ts/package.json file: "devDependencies": {
"autoprefixer": "^10.4.8",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.0.0",
"cypress": "^12.7.0",
"mini-css-extract-plugin": "^2.6.1",
"postcss": "^8.4.16",
"postcss-loader": "^7.0.1",
"svelte": "^3.49.0",
"svelte-htm": "^1.1.1",
"svelte-loader": "^3.1.3",
"svelte-preprocess": "^4.10.7",
"tailwindcss": "^3.1.8",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.10.0"
},
"dependencies": {
"@tsconfig/svelte": "^3.0.0",
"serve": "^13.0.2"
}, If this example is updated to
and I suggest that you revert to If that does not solve your issue, then please share the contents of your |
I did try. Alas, many errors upset that svelte tsconfig has " node_modules/@tsconfig/svelte/tsconfig.json:8:25 - error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
8 "moduleResolution": "bundler",
~~~~~~~~~
node_modules/@tsconfig/svelte/tsconfig.json:14:5 - error TS5023: Unknown compiler option 'verbatimModuleSyntax'.
14 "verbatimModuleSyntax": true,
~~~~~~~~~~~~~~~~~~~~~~ Speaking personally, I am comfortable waiting until the Cypress team upgrades to TypeScript 5. This issue is not urgent for me or the project. Component testing is a nice-to-have, but we're getting along fine with e2e for now. |
Which version of @tsconfig/svelte are you using? The example with |
I was not trying to say that TypeScript 5 is not supported. I was just making the observation in the example configuration that |
|
I will roll this to another version and get back to you. |
In your initial post you indicated that you could not share a reproducible example. You also have only provided only partial information about which dependency versions you are using. This limits the amount of help you can be given. If you are not able to make progress based on the discussions so far, then a possibility for you to provide a reproducible example might be for you to fork the repo cypress-io/cypress-component-testing-apps, create a new branch and then set up the versions in the svelte-webpack-ts directory to match those which you are using. You could then share that information. |
Oh, my apologies, @MikeMcC399 . I didn't post this for help, more just to report an issue. Feel free to close it out. |
Thanks for clarifying your expectations! In fact whether a issue ends up with a bug fix, feature request or whether it can be solved by some user action mostly depends on getting the problem reduced to a reproducible example, especially if it is a complex scenario. Since I'm a community contributor, not a member of the Cypress team, I don't have privileges to close issues. So any decision to close would have to come from either you yourself or the Cypress triage team. |
Just to follow up. I did try to downgrade I am absolutely willing to answer any questions the cypress team may have for me, but I have depleted my energy budget for troubleshooting this. If the issue helps the team, great, but I am fine with waiting or closing. |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
Current behavior
Cypress reports an error in-app when launching component testing. No testing is possible.
Desired behavior
No error.
Test code to reproduce
I'm not doing that.
Cypress Version
12.17.4
Node version
v18.12.1
Operating System
Ubuntu 22.04.3 LTS
Debug Logs
I don't feel comfortable with the ask. The logs contain private, proprietary information about the project and this is a public forum.
Other
svelte@3.59.2
TypeScript@5.1.6
I tried:
@cypress/svelte
" as apeerDependency
resolution
;node_modules
and the lock file.tsconfig
to the cypress folder.The text was updated successfully, but these errors were encountered: