mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-05-06 08:36:58 +00:00
fix cannot build with react 18 by yarn (#100)
This commit is contained in:
@@ -27,10 +27,8 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: yarn install
|
run: npm install
|
||||||
- name: Update Preact Render to String
|
|
||||||
run: yarn add preact-render-to-string@^6.5.0
|
|
||||||
- name: Build and Start Next.js
|
- 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
|
- name: Run Tests
|
||||||
run: yarn test
|
run: npm run test
|
||||||
Generated
+1157
-25
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
"next": "^12.1.4",
|
"next": "^12.1.4",
|
||||||
"next-plugin-preact": "^3.0.7",
|
"next-plugin-preact": "^3.0.7",
|
||||||
"preact": "^10.7.2",
|
"preact": "^10.7.2",
|
||||||
"preact-render-to-string": "^5.2.0",
|
"preact-render-to-string": "^6.5.0",
|
||||||
"prismjs": "^1.23.0",
|
"prismjs": "^1.23.0",
|
||||||
"react": "npm:@preact/compat",
|
"react": "npm:@preact/compat",
|
||||||
"react-dom": "npm:@preact/compat",
|
"react-dom": "npm:@preact/compat",
|
||||||
|
|||||||
Reference in New Issue
Block a user