Skip to content

Commit

Permalink
fix next js builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kamijin-fanta committed Oct 16, 2022
1 parent c93c546 commit 8f38ca2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/_react-icons_all-files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"peerDependencies": {
"react": "*"
}
}
}
2 changes: 1 addition & 1 deletion packages/_react-icons_all/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"peerDependencies": {
"react": "*"
}
}
}
6 changes: 5 additions & 1 deletion packages/preview/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ module.exports = withPWA({
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on fs module, see github.com/zeit/next.js/issues/7755
if (!isServer) {
config.node = { fs: "empty", module: "empty" };
config.resolve.fallback = {
...config.resolve.fallback,
fs: "empty",
module: "empty",
};
}
config.resolve.alias["@components"] = path.join(
__dirname,
Expand Down

0 comments on commit 8f38ca2

Please sign in to comment.