Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

not support SASS-LOADER implementation #256

Open
weilinzung opened this issue Jun 9, 2019 · 4 comments
Open

not support SASS-LOADER implementation #256

weilinzung opened this issue Jun 9, 2019 · 4 comments

Comments

@weilinzung
Copy link

weilinzung commented Jun 9, 2019

{
    loader: 'sass-loader', 
    options: {
      sourceMap: true,
      implementation: require('sass'),
    }
}

Module build failed (from ../node_modules/sass-loader/lib/loader.js):
TypeError: Cannot read property 'bind' of undefined
    at getRenderFuncFromSassImpl (.../node_modules/sass-loader/lib/loader.js:105:30)
    at Object.sassLoader (.../node_modules/sass-loader/lib/loader.js:46:20)
@DemonCloud
Copy link

  • Operating System: MAC OSX 10.14.6
  • Node Version: 12.9.1
  • NPM Version: 6.11.2
  • webpack Version: 4.39.3
  • sass-loader Version: 8.0.0

Expected Behavior

sass-loader 7.3.1 work correct!

build success as sass-loader 7.3.1 version with mini-css-extract-plugin && HappyPack

Actual Behavior

get Error working with mini-css-extract-plugin and HappyPack

Code

webpack mode production

// webpack.config.js
   // use loader
      {
        test: /\.(css|scss)$/,
        use: [
          MiniCssExtractPlugin.loader,
          require.resolve('happypack/loader') + '?id=scss',
        ],
      }

// HappyPack
    new HappyPack({
      id: 'scss',
      threadPool: HappyThreadPool,
      loaders: [
            {
              loader: require.resolve('css-loader'),
              options: {
                sourceMap: true,
                modules: abcJSON.css ? !!abcJSON.css.modules : false,
                importLoaders: 2,
              },
            },
            {
              loader: require.resolve('postcss-loader'),
              options: {
                sourceMap: 'inline',
                config: {
                  path: path.join(__dirname, '/'),
                },
              },
            },
       {
          loader: require.resolve('resolve-url-loader'),
          options: {
            sourceMap: true,
          },
        },
        {
          loader: require.resolve('sass-loader'),
          options: {
            sourceMap: true
          },
        },
      ],
    }),

Screen Shot 2019-08-30 at 1 14 08 PM

@shinelp100
Copy link

I have the same problem, Can anyone fix it?

@webfrontzhifei
Copy link

have you fixed it?

@sujianqingfeng
Copy link

I encountered this problem, upgrade Vue-loader vue template-compiler version

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

No branches or pull requests

5 participants