mirror of
https://github.com/jambonz/next-static-site.git
synced 2025-12-18 20:37:44 +00:00
fix cannot build with react 18 by yarn (#100)
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -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
1182
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user