fix cannot build with react 18 by yarn (#100)

This commit is contained in:
Hoan Luu Huu
2024-10-23 18:24:39 +07:00
committed by GitHub
parent d908448457
commit 3478906024
3 changed files with 1161 additions and 31 deletions

View File

@@ -27,10 +27,8 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: yarn install
- name: Update Preact Render to String
run: yarn add preact-render-to-string@^6.5.0
run: npm install
- name: Build and Start Next.js
run: yarn build && (yarn start&) > /dev/null
run: npm run build && (npm run start&) > /dev/null
- name: Run Tests
run: yarn test
run: npm run test

1182
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -29,7 +29,7 @@
"next": "^12.1.4",
"next-plugin-preact": "^3.0.7",
"preact": "^10.7.2",
"preact-render-to-string": "^5.2.0",
"preact-render-to-string": "^6.5.0",
"prismjs": "^1.23.0",
"react": "npm:@preact/compat",
"react-dom": "npm:@preact/compat",