Skip to content

Commit 8c882e0

Browse files
authored
Make playgrounds build again (#2894)
* sync yarn.lock * drop resolutions from root package.json This is done in the `package.json` from the `playground-react` package * update next.config.js Use `buildActivity` instead of `autoPrerender` * ignore type checking in playground files This is not ideal, but it is the first step in making the build pass again.
1 parent 847976a commit 8c882e0

File tree

6 files changed

+32
-4
lines changed

6 files changed

+32
-4
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"workspaces": [
1010
"packages/*"
1111
],
12-
"resolutions": {
13-
"next/@swc/helpers": "0.4.36"
14-
},
1512
"scripts": {
1613
"react": "yarn workspace @headlessui/react",
1714
"react-playground": "yarn workspace playground-react dev",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
/** @type {import('next').NextConfig} */
12
module.exports = {
23
reactStrictMode: false,
34
devIndicators: {
4-
autoPrerender: false,
5+
buildActivity: false,
56
},
67
}

packages/playground-react/pages/combobox/combobox-open-on-focus.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
import { Combobox } from '@headlessui/react'
23
import { useEffect, useState } from 'react'
34

packages/playground-react/pages/combobox/combobox-virtual-with-empty-states.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
import { Combobox } from '@headlessui/react'
23
import { useRef, useState } from 'react'
34
import { classNames } from '../../utils/class-names'

packages/playground-react/pages/combobox/combobox-virtualized.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
import { Combobox } from '@headlessui/react'
23
import { useMemo, useState } from 'react'
34

yarn.lock

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,13 @@
527527
"@floating-ui/dom" "^1.4.5"
528528
vue-demi ">=0.13.0"
529529

530+
"@headlessui/react@*":
531+
version "1.7.17"
532+
resolved "https://registry.yarnpkg.com/@headlessui/react/-/react-1.7.17.tgz#a0ec23af21b527c030967245fd99776aa7352bc6"
533+
integrity sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==
534+
dependencies:
535+
client-only "^0.0.1"
536+
530537
"@heroicons/react@^1.0.6":
531538
version "1.0.6"
532539
resolved "https://registry.yarnpkg.com/@heroicons/react/-/react-1.0.6.tgz#35dd26987228b39ef2316db3b1245c42eb19e324"
@@ -1192,6 +1199,14 @@
11921199
dependencies:
11931200
tslib "^2.4.0"
11941201

1202+
1203+
version "0.4.36"
1204+
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.36.tgz#fcfff76ed52c214f357e8e9d3f37b568908072d9"
1205+
integrity sha512-5lxnyLEYFskErRPenYItLRSge5DjrJngYKdVjRSrWfza9G6KkgHEXi0vUZiyUeMU5JfXH1YnvXZzSp8ul88o2Q==
1206+
dependencies:
1207+
legacy-swc-helpers "npm:@swc/helpers@=0.4.14"
1208+
tslib "^2.4.0"
1209+
11951210
"@swc/helpers@^0.5.0":
11961211
version "0.5.3"
11971212
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.3.tgz#98c6da1e196f5f08f977658b80d6bd941b5f294f"
@@ -2240,6 +2255,11 @@ cli-truncate@^3.1.0:
22402255
slice-ansi "^5.0.0"
22412256
string-width "^5.0.0"
22422257

2258+
client-only@^0.0.1:
2259+
version "0.0.1"
2260+
resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1"
2261+
integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==
2262+
22432263
cliui@^6.0.0:
22442264
version "6.0.0"
22452265
resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1"
@@ -4455,6 +4475,13 @@ kleur@^3.0.3:
44554475
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
44564476
integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
44574477

4478+
"legacy-swc-helpers@npm:@swc/helpers@=0.4.14":
4479+
version "0.4.14"
4480+
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.14.tgz#1352ac6d95e3617ccb7c1498ff019654f1e12a74"
4481+
integrity sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==
4482+
dependencies:
4483+
tslib "^2.4.0"
4484+
44584485
leven@^3.1.0:
44594486
version "3.1.0"
44604487
resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2"

0 commit comments

Comments
 (0)