From 9e5aa6dc35f0c1d6dc3163b55a3010e64cc476e4 Mon Sep 17 00:00:00 2001 From: debie Date: Tue, 17 Oct 2023 12:19:11 -0700 Subject: [PATCH] Update example, now running --- apps/demo-pkp-social-auth-next-ts/next.config.js | 11 +++++++++++ apps/demo-pkp-social-auth-next-ts/package.json | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/demo-pkp-social-auth-next-ts/next.config.js b/apps/demo-pkp-social-auth-next-ts/next.config.js index a843cbee09..a660166971 100644 --- a/apps/demo-pkp-social-auth-next-ts/next.config.js +++ b/apps/demo-pkp-social-auth-next-ts/next.config.js @@ -1,6 +1,17 @@ /** @type {import('next').NextConfig} */ + +var webpack = require('webpack'); + const nextConfig = { reactStrictMode: true, + webpack: (config, options) => { + config.plugins.push( + new webpack.NormalModuleReplacementPlugin(/^node:/, (resource) => { + resource.request = resource.request.replace(/^node:/, ""); + }) + ); + return config; + }, } module.exports = nextConfig diff --git a/apps/demo-pkp-social-auth-next-ts/package.json b/apps/demo-pkp-social-auth-next-ts/package.json index e51190bdd0..5adad9898e 100644 --- a/apps/demo-pkp-social-auth-next-ts/package.json +++ b/apps/demo-pkp-social-auth-next-ts/package.json @@ -16,6 +16,7 @@ "@lit-protocol/types": "^3.0.6", "@radix-ui/react-radio-group": "^1.1.3", "@stytch/nextjs": "^11.0.0", + "@stytch/vanilla-js": "^3.0.1", "dotenv": "^16.3.1", "eslint": "8.36.0", "eslint-config-next": "^13.5.4", @@ -25,7 +26,8 @@ "prettier": "^2.8.7", "react": "^18.2.0", "react-dom": "^18.2.0", - "wagmi": "^0.12.8" + "wagmi": "^0.12.8", + "webpack": "^5.89.0" }, "devDependencies": { "@types/node": "18.15.11",