# \[Archive\] Nextjs 13.4 errors with loaders

**URL:** <https://builder.metamask.io/t/archive-nextjs-13-4-errors-with-loaders/1772>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [September 21, 2023, 7:59am UTC](https://builder.metamask.io/t/archive-nextjs-13-4-errors-with-loaders/1772 "2023-09-21T07:59:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexmazzon](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/alexmazzon/32/304_2.png) [@alexmazzon](https://builder.metamask.io/u/alexmazzon)\
**Post date:** [September 21, 2023, 7:59am UTC](https://builder.metamask.io/t/archive-nextjs-13-4-errors-with-loaders/1772/1 "2023-09-21T07:59:29Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **alexmazzon** on 9/21/2023.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

**Please provide the following details too when asking for help in this category:**

- SDK Version: 7.x.x
- Platform: NextJs
- Browser Console Screenshots:  
 ![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/2X/5/5ca705926284663bd17780eaa74d3e071ce310ab.png)

**Please provide the Web3Auth initialization and login code snippet below:**

Hi, i’m trying to use Web3Auth inside a Next 13.4 project.

This is my next config, following the guide

```auto
/** @type {import('next').NextConfig} */
const { ProvidePlugin } = require("webpack");
const nextConfig = {
  distDir: ".next",
  reactStrictMode: true,
  output: "standalone",
  rewrites: async () => [
    {
      source: "/public/creator.html",
      destination: "/api/creator.js",
    },
  ],
  webpack: (config, webpack) => {
    const fallback = config.resolve.fallback || {};
    Object.assign(fallback, {
      crypto: false, // require.resolve("crypto-browserify") can be polyfilled here if needed
      stream: false, // require.resolve("stream-browserify") can be polyfilled here if needed
      assert: false, // require.resolve("assert") can be polyfilled here if needed
      http: false, // require.resolve("stream-http") can be polyfilled here if needed
      https: false, // require.resolve("https-browserify") can be polyfilled here if needed
      os: false, // require.resolve("os-browserify") can be polyfilled here if needed
      url: false, // require.resolve("url") can be polyfilled here if needed
      zlib: false, // require.resolve("browserify-zlib") can be polyfilled here if needed
    });
    config.resolve.fallback = fallback;
    config.plugins = (config.plugins || []).concat([
      new ProvidePlugin({
        process: "process/browser",
        Buffer: ["buffer", "Buffer"],
      }),
    ]);
    config.ignoreWarnings = [/Failed to parse source map/];
    config.module.rules.push({
      test: /\.(js|ts|mjs|jsx)$/,
      enforce: "pre",
      loader: require.resolve("source-map-loader"),
      resolve: {
        fullySpecified: false,
      },
    });
    return config;
  },
};
module.exports = nextConfig;

```

Using the sample code provided in the P&P guide i still got the error showed on the screenshot. Anyone can help me?

---

<div class="post-metadata">

**Author:** ![vjgee](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vjgee](https://builder.metamask.io/u/vjgee)\
**Post date:** [September 21, 2023, 9:23am UTC](https://builder.metamask.io/t/archive-nextjs-13-4-errors-with-loaders/1772/2 "2023-09-21T09:23:57Z")

</div>

@alexmazzon Welcome Aboard!

Your issue has been forwarded to our team and we will get back once there is a meaningful update to share.

---

<div class="post-metadata">

**Author:** ![pepper](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@pepper](https://builder.metamask.io/u/pepper)\
**Post date:** [September 29, 2023, 3:18am UTC](https://builder.metamask.io/t/archive-nextjs-13-4-errors-with-loaders/1772/3 "2023-09-29T03:18:25Z")

</div>

Hello @alexmazzon  
can you exactly let me know what example app did you try?  
when I tried modal sdk with next 13.4 it had no problem.
