Skip to content

Commit

Permalink
fix(apps/next): 临时替换 @babel/types 回上一版本,以避免 Next.js 编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Mankin committed May 25, 2022
1 parent 621117a commit 79d5b51
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 39 deletions.
1 change: 1 addition & 0 deletions apps/next/next.config.js
Expand Up @@ -4,6 +4,7 @@ const withFonts = require('next-fonts');
const { withExpo } = require('@expo/next-adapter');

const withTM = require('next-transpile-modules')([
'react-native-web',
'@packages/app'
]);

Expand Down
1 change: 1 addition & 0 deletions apps/next/package.json
Expand Up @@ -16,6 +16,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-native-reanimated": "^2.8.0",
"react-native-web": "0.17.7",
"setimmediate": "^1.0.5"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions package.json
Expand Up @@ -20,6 +20,12 @@
"eslint-plugin-react-hooks": "^4.5.0",
"typescript": "^4.6.4"
},
"pnpm": {
"overrides": {
"@babel/types@7.18.0": "7.17.12",
"@babel/types@^7.18.0": "7.17.12"
}
},
"workspaces": {
"nohoist": [
"**/@babel/core",
Expand Down

0 comments on commit 79d5b51

Please sign in to comment.