Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next throw an error when issuer option is present in next.config.js #726

Open
ayoubmehd opened this issue May 21, 2022 · 2 comments
Open
Labels

Comments

@ayoubmehd
Copy link

ayoubmehd commented May 21, 2022

Next throw an error when issuer option is present in next.config.js

next.config.js

/** @type {import('next').NextConfig} */
const nextConfig = {
  webpack(config) {
    config.module.rules.push({
      test: /\.svg$/i,
      issuer: /\.[jt]sx?$/,
      use: ["@svgr/webpack"],
    });

    return config;
  },
  reactStrictMode: true,
};

module.exports = nextConfig;

if the issuer option is present the folowing error will be occure:
image

it works fine without the issuer option

I'm using:

  • svgr v6.2.1
  • node v14.17.5
  • next v12.1.5
  • windows 10 version 21H1 OS build 19043.1706, wsl 2 ubuntu 20.04
@ayoubmehd ayoubmehd changed the title Next throw a run time error when issuer option is present in next.config.js Next throw an error when issuer option is present in next.config.js May 21, 2022
@stale
Copy link

stale bot commented Oct 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@jamesvclements
Copy link

Saw the same thing, landed here

#860

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants