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

style-loader causing Uncaught TypeError: setting getter-only property "default" #631

Open
evoactivity opened this issue Aug 2, 2024 · 0 comments

Comments

@evoactivity
Copy link

evoactivity commented Aug 2, 2024

When trying to use sass-loader with EAI, the style-loader causes the error mentioned in the title

image

Issue is in loader.js

image

autoImport config looks like this

autoImport: {
  webpack: {
    module: {
      rules: [
        {
          test: /\.s[ac]ss$/i,
          use: [
            'style-loader',
            {
              loader: 'css-loader',
              options: {
                url: {
                  filter: (url) => {
                    if (url.includes('data:image')) {
                      return false;
                    }

                    return true;
                  },
                },
              },
            },
            'sass-loader',
          ],
        },
      ],
    },
  },
},

Reproduction https://github.com/evoactivity/ember-eai-sass-monorepo/

It being a monorepo doesn't have an impact, I tested importing from a file in the app and saw the same issue, I was just trying to closesly match the setup of a user in discord.

Issue does not happen when using mini-css-extract-plugin

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

No branches or pull requests

1 participant