-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Use Yarn PnP #9476
base: main
Are you sure you want to change the base?
Use Yarn PnP #9476
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
c44a362
to
da889b7
Compare
As a workaround for babel/babel#11118, you can use |
thanks @nicolo-ribaudo, did that and also (tried to) fix all the other errors we get from the tsc build. |
Landed a bit of this in #9545, all the things |
03c26a7
to
aa6bac8
Compare
63353f7
to
01d1027
Compare
7be2b13
to
3659937
Compare
Can remove the packageExtensions as yarn does it automatically: https://github.com/yarnpkg/berry/pull/1847/files |
@merceyz hey, happy new year! 😀 Would you be able to take a look at the error with lint and typescript?
|
Hey, happy (late) new year! 😄
It's something alright, fixed in #13836.
It's in the DOM types so you need to either add
Some of the examples aren't declaring diff --git a/examples/angular/package.json b/examples/angular/package.json
index cb64e7476e..5c9fa12e7b 100644
--- a/examples/angular/package.json
+++ b/examples/angular/package.json
@@ -27,6 +27,7 @@
"babel-jest": "workspace:^",
"babel-plugin-transform-typescript-metadata": "*",
"jest": "workspace:^",
+ "jest-environment-jsdom": "workspace:^",
"jest-zone-patch": "*"
}
}
diff --git a/examples/jquery/package.json b/examples/jquery/package.json
index c7808e236c..7952a710b6 100644
--- a/examples/jquery/package.json
+++ b/examples/jquery/package.json
@@ -6,7 +6,8 @@
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.1.0",
"babel-jest": "workspace:^",
- "jest": "workspace:^"
+ "jest": "workspace:^",
+ "jest-environment-jsdom": "workspace:^"
},
"dependencies": {
"jquery": "^3.2.1"
diff --git a/examples/react-testing-library/package.json b/examples/react-testing-library/package.json
index 9caf65477a..478ed69447 100644
--- a/examples/react-testing-library/package.json
+++ b/examples/react-testing-library/package.json
@@ -12,7 +12,8 @@
"@babel/preset-react": "^7.12.1",
"@testing-library/react": "^12.1.5",
"babel-jest": "workspace:^",
- "jest": "workspace:^"
+ "jest": "workspace:^",
+ "jest-environment-jsdom": "workspace:^"
},
"scripts": {
"test": "jest"
diff --git a/examples/react/package.json b/examples/react/package.json
index f100ce09fc..a1c2e80e72 100644
--- a/examples/react/package.json
+++ b/examples/react/package.json
@@ -11,7 +11,8 @@
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.12.1",
"babel-jest": "workspace:^",
- "jest": "workspace:^"
+ "jest": "workspace:^",
+ "jest-environment-jsdom": "workspace:^"
},
"scripts": {
"test": "jest"
diff --git a/examples/typescript/package.json b/examples/typescript/package.json
index 3ca4c4463c..22cf5abfa7 100644
--- a/examples/typescript/package.json
+++ b/examples/typescript/package.json
@@ -14,7 +14,8 @@
"@babel/preset-typescript": "^7.0.0",
"@jest/globals": "workspace:^",
"babel-jest": "workspace:^",
- "jest": "workspace:^"
+ "jest": "workspace:^",
+ "jest-environment-jsdom": "workspace:^"
},
"scripts": {
"test": "jest"
|
Thanks for taking a look! The |
This PR is stale because it has been open 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one. |
Summary
#10188 landed yarn v2 with
node-modules
linker. I wanna play with PnP - even if we don't land it for whatever reason, any errors raised by it is likely things we should fix on master.Test plan
Green CI at some point.