-
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
5.4.0 Regression: TypeError: TsconfigPaths.loadConfig if not a function #9326
Comments
This is my test code that is crashing :) describe('00-00 Test', () => {
it('Test', () => {
console.log('test')
})
}) |
As I wrote - those tests are working fine in 5.3.0 version of Cypress |
Also, there is no such code in Cypress repo. Maybe the issue is from the plugins you are using. You should provide a reproducible example, so someone can look at the error. |
I created a project similar to our production project. It's also crashing. |
I was able to reproduce the issue using your provided project. The error originates from "tsconfig-paths-webpack-plugin" package, in file "node_modules\tsconfig-paths-webpack-plugin\lib\plugin.js". |
This is a regression in 5.4.0. I suspect this is related to #8826 which caused these other issues: #9145 and #8864 I can reproduce this with the following code: Reproducible Example
it('Test', () => { })
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"src/*": [
"src/*"
]
}
}
}
{
"devDependencies": {
"cypress": "6.0.0",
"typescript": "^4.1.2"
}
} 5.3.05.4.0 |
@jennifer-shehane any progress with this ticket? |
@jennifer-shehane same here, it would be nice to see some love in this issue. |
So as @W3stside advanced yesterday, Cypress have an issue in 6.3 that breaks our tests: cypress-io/cypress#9326 For now, we can update to 5.3 savely, which already includes the changes for `intercept` Still all green: ![image](https://user-images.githubusercontent.com/2352112/105979759-51e01b80-6094-11eb-979f-5c671fc55cfd.png)
Internal Jira issue: TR-661 |
I've been doing some digging and think I got to the bottom of this. The cause of the issue is setting I had to deal with this in our default preprocessor, which uses a package called Unfortunately, I don't think we can do the same in this case, since it's a transient dependency, relied on indirectly by I think the only solution is to rename |
It works - thank you :) |
Cypress is crashing with following message:
The same in testrunner:
This test file is running correctly in cypress 5.3.0 version and lower.
Please help me!
Test code to reproduce
package.json file:
index.js file:
tsconfig-paths.json file:
tsconfig.json file:
Versions
node: 14.15.1
typescript: 4.1.2
cypress: 5.4.0 and higher
windows10 and MacOS
Last working cypress version: 5.3.0
The text was updated successfully, but these errors were encountered: