Skip to content

Commit

Permalink
Fix next js build CI (#6381)
Browse files Browse the repository at this point in the history
## Summary
It doesn't work anymroe due to some nodes paths.
## Test plan
  • Loading branch information
szydlovsky authored Aug 6, 2024
1 parent e6ad60b commit 647638a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 63 deletions.
2 changes: 1 addition & 1 deletion apps/next-example/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
{
extensions: ['.js', '.ts', '.tsx', '.jsx'],
alias: {
'react-native': './node_modules/react-native-web',
'react-native': '../../node_modules/react-native-web',
// Uncomment this if you want fast-refresh to work with reanimated:
// 'react-native-reanimated': '../src/index',
},
Expand Down
3 changes: 2 additions & 1 deletion apps/next-example/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ module.exports = withPlugins([withBundleAnalyzer, withExpo], {
}
config.resolve.alias.react = require('path').resolve(
__dirname,
'.',
'..',
'..',
'node_modules',
'react'
);
Expand Down
6 changes: 3 additions & 3 deletions apps/next-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"dependencies": {
"expo": "~48.0.10",
"next": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native-reanimated": "workspace:*",
"react-native-web": "^0.18.9"
"react-native-web": "0.19.11"
},
"devDependencies": {
"@babel/core": "^7.12.9",
Expand Down
4 changes: 2 additions & 2 deletions apps/web-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"@shopify/flash-list": "^1.7.0",
"common-app": "workspace:*",
"expo": "~51.0.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.74.0",
"react-native-reanimated": "workspace:*",
"react-native-web": "0.19.11"
Expand Down
65 changes: 9 additions & 56 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10201,16 +10201,6 @@ __metadata:
languageName: node
linkType: hard

"create-react-class@npm:^15.7.0":
version: 15.7.0
resolution: "create-react-class@npm:15.7.0"
dependencies:
loose-envify: "npm:^1.3.1"
object-assign: "npm:^4.1.1"
checksum: 10/e845cb275c6b59c1fc4c4037e3d5caf4f42a258ef21f5cd9c86cd7ef476f933998f5c363a9e4b36970f682c30b122637d41474742abc85d8b931aef8041da8a3
languageName: node
linkType: hard

"cross-fetch@npm:^3.1.5":
version: 3.1.8
resolution: "cross-fetch@npm:3.1.8"
Expand Down Expand Up @@ -15914,7 +15904,7 @@ __metadata:
languageName: node
linkType: hard

"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.3.1, loose-envify@npm:^1.4.0":
"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.4.0":
version: 1.4.0
resolution: "loose-envify@npm:1.4.0"
dependencies:
Expand Down Expand Up @@ -16883,10 +16873,10 @@ __metadata:
next: "npm:latest"
next-compose-plugins: "npm:^2.2.1"
prettier: "npm:2.8.8"
react: "npm:^18.2.0"
react-dom: "npm:^18.2.0"
react: "npm:18.3.1"
react-dom: "npm:18.3.1"
react-native-reanimated: "workspace:*"
react-native-web: "npm:^0.18.9"
react-native-web: "npm:0.19.11"
start-server-and-test: "npm:^2.0.1"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -17068,13 +17058,6 @@ __metadata:
languageName: node
linkType: hard

"normalize-css-color@npm:^1.0.2":
version: 1.0.2
resolution: "normalize-css-color@npm:1.0.2"
checksum: 10/7c1c435dbfda7abe3f306d5bb2dbf8b1bb7bbe4f6ec53cbc2b95f4514061d9441c082dd31abda7857d98956b40e24845284319b0c57c3883d245b71b70d3aeda
languageName: node
linkType: hard

"normalize-path@npm:^3.0.0, normalize-path@npm:~3.0.0":
version: 3.0.0
resolution: "normalize-path@npm:3.0.0"
Expand Down Expand Up @@ -18306,19 +18289,7 @@ __metadata:
languageName: node
linkType: hard

"react-dom@npm:18.2.0":
version: 18.2.0
resolution: "react-dom@npm:18.2.0"
dependencies:
loose-envify: "npm:^1.1.0"
scheduler: "npm:^0.23.0"
peerDependencies:
react: ^18.2.0
checksum: 10/ca5e7762ec8c17a472a3605b6f111895c9f87ac7d43a610ab7024f68cd833d08eda0625ce02ec7178cc1f3c957cf0b9273cdc17aa2cd02da87544331c43b1d21
languageName: node
linkType: hard

"react-dom@npm:^18.2.0":
"react-dom@npm:18.3.1":
version: 18.3.1
resolution: "react-dom@npm:18.3.1"
dependencies:
Expand Down Expand Up @@ -18644,24 +18615,6 @@ __metadata:
languageName: node
linkType: hard

"react-native-web@npm:^0.18.9":
version: 0.18.12
resolution: "react-native-web@npm:0.18.12"
dependencies:
"@babel/runtime": "npm:^7.18.6"
create-react-class: "npm:^15.7.0"
fbjs: "npm:^3.0.4"
inline-style-prefixer: "npm:^6.0.1"
normalize-css-color: "npm:^1.0.2"
postcss-value-parser: "npm:^4.2.0"
styleq: "npm:^0.1.2"
peerDependencies:
react: ^17.0.2 || ^18.0.0
react-dom: ^17.0.2 || ^18.0.0
checksum: 10/f3d36363026dd8e21cb4c794b2bffa92590c815a246c7f2682d4692c9e4a7e625effe04134d68b8ca202cc85a8c19444e1a17dcb53278ef73425e162fcd58eed
languageName: node
linkType: hard

"react-native@npm:0.73.4":
version: 0.73.4
resolution: "react-native@npm:0.73.4"
Expand Down Expand Up @@ -18952,7 +18905,7 @@ __metadata:
languageName: node
linkType: hard

"react@npm:18.3.1, react@npm:^18.2.0":
"react@npm:18.3.1":
version: 18.3.1
resolution: "react@npm:18.3.1"
dependencies:
Expand Down Expand Up @@ -20475,7 +20428,7 @@ __metadata:
languageName: node
linkType: hard

"styleq@npm:0.1.3, styleq@npm:^0.1.2, styleq@npm:^0.1.3":
"styleq@npm:0.1.3, styleq@npm:^0.1.3":
version: 0.1.3
resolution: "styleq@npm:0.1.3"
checksum: 10/9a75a1b635f8ebf5c0fdc3ffb56f466254f29aa1b2962ab2af776015d3b3bb1732a53edcda0c9ac9b97be96c22459db768feac0d61c1a319cc3954011ca9dcd8
Expand Down Expand Up @@ -21669,8 +21622,8 @@ __metadata:
eslint: "npm:^8.57.0"
expo: "npm:~51.0.2"
prettier: "npm:2.8.8"
react: "npm:18.2.0"
react-dom: "npm:18.2.0"
react: "npm:18.3.1"
react-dom: "npm:18.3.1"
react-native: "npm:0.74.0"
react-native-reanimated: "workspace:*"
react-native-web: "npm:0.19.11"
Expand Down

0 comments on commit 647638a

Please sign in to comment.