Skip to content

Commit

Permalink
Fix Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
lordabrax committed Feb 22, 2022
1 parent 48aaf78 commit 826bd39
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

## Temporary

- Storybook fix (Webpack5 conflicts): add this to `package.json`

```
"crypto": "npm:crypto-browserify",
"stream": "npm:stream-browserify",
"https": "npm:https-browserify",
"http": "npm:stream-http",
"os": "npm:os-browserify"
```
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,14 @@
"postcss": "^8.4.6",
"tailwindcss": "^3.0.1",
"typescript": "4.5.5",
"webpack": "5"
"webpack": "5",
"crypto": "npm:crypto-browserify",
"stream": "npm:stream-browserify",
"https": "npm:https-browserify",
"http": "npm:stream-http",
"os": "npm:os-browserify"
},
"msw": {
"workerDirectory": "public"
}
}
}
18 changes: 14 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8157,7 +8157,7 @@ cross-spawn@^6.0.0:
shebang-command "^1.2.0"
which "^1.2.9"

crypto-browserify@3.12.0, crypto-browserify@^3.11.0:
crypto-browserify@3.12.0, crypto-browserify@^3.11.0, "crypto@npm:crypto-browserify":
version "3.12.0"
resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec"
integrity sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==
Expand Down Expand Up @@ -11042,7 +11042,17 @@ http-signature@~1.2.0:
jsprim "^1.2.2"
sshpk "^1.7.0"

https-browserify@1.0.0, https-browserify@^1.0.0:
"http@npm:stream-http":
version "3.2.0"
resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-3.2.0.tgz#1872dfcf24cb15752677e40e5c3f9cc1926028b5"
integrity sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==
dependencies:
builtin-status-codes "^3.0.0"
inherits "^2.0.4"
readable-stream "^3.6.0"
xtend "^4.0.2"

https-browserify@1.0.0, https-browserify@^1.0.0, "https@npm:https-browserify":
version "1.0.0"
resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73"
integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=
Expand Down Expand Up @@ -13927,7 +13937,7 @@ ora@^5.4.1:
strip-ansi "^6.0.0"
wcwidth "^1.0.1"

os-browserify@0.3.0, os-browserify@^0.3.0:
os-browserify@0.3.0, os-browserify@^0.3.0, "os@npm:os-browserify":
version "0.3.0"
resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27"
integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=
Expand Down Expand Up @@ -16304,7 +16314,7 @@ store2@^2.12.0:
resolved "https://registry.yarnpkg.com/store2/-/store2-2.12.0.tgz#e1f1b7e1a59b6083b2596a8d067f6ee88fd4d3cf"
integrity sha512-7t+/wpKLanLzSnQPX8WAcuLCCeuSHoWdQuh9SB3xD0kNOM38DNf+0Oa+wmvxmYueRzkmh6IcdKFtvTa+ecgPDw==

stream-browserify@3.0.0:
stream-browserify@3.0.0, "stream@npm:stream-browserify":
version "3.0.0"
resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-3.0.0.tgz#22b0a2850cdf6503e73085da1fc7b7d0c2122f2f"
integrity sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==
Expand Down

0 comments on commit 826bd39

Please sign in to comment.