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

Invalid mapping: Negative column number #351

Closed
narthollis opened this issue Jan 20, 2017 · 33 comments
Closed

Invalid mapping: Negative column number #351

narthollis opened this issue Jan 20, 2017 · 33 comments

Comments

@narthollis
Copy link

When running webpack -p I am getting errors that appear to be related to producing sourcemaps. When i set sourceMap: false for sass-loader the build runs cleanly.

Stack trace follows:

Error: Invalid mapping: {"generated":{"line":1,"column":24989},"source":"webpack:///Work/Platform/Web/Web.App/assets/css/Work/Platform/Web/Web.App/Work/Platform/Web/Web.App/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_clearfix.scss","original":{"line":15,"column":-12},"name":null}
    at SourceMapGenerator_validateMapping [as _validateMapping] (C:\Work\Platform\Web\Web.App\node_modules\source-map\lib\source-map-generator.js:277:13)
    at SourceMapGenerator_addMapping [as addMapping] (C:\Work\Platform\Web\Web.App\node_modules\source-map\lib\source-map-generator.js:101:12)
    at C:\Work\Platform\Web\Web.App\node_modules\source-map\lib\source-node.js:345:13
    at SourceNode_walk [as walk] (C:\Work\Platform\Web\Web.App\node_modules\source-map\lib\source-node.js:224:9)
    at SourceNode_walk [as walk] (C:\Work\Platform\Web\Web.App\node_modules\source-map\lib\source-node.js:220:13)
    at SourceNode_walk [as walk] (C:\Work\Platform\Web\Web.App\node_modules\source-map\lib\source-node.js:220:13)
    at SourceNode_toStringWithSourceMap [as toStringWithSourceMap] (C:\Work\Platform\Web\Web.App\node_modules\source-map\lib\source-node.js:336:8)
    at ConcatSource.proto.sourceAndMap (C:\Work\Platform\Web\Web.App\node_modules\webpack-sources\lib\SourceAndMapMixin.js:28:32)
    at Compilation.<anonymous> (C:\Work\Platform\Web\Web.App\node_modules\webpack\lib\SourceMapDevToolPlugin.js:57:32)
    at Array.map (native)
    at Compilation.<anonymous> (C:\Work\Platform\Web\Web.App\node_modules\webpack\lib\SourceMapDevToolPlugin.js:43:84)
    at Array.forEach (native)
    at Compilation.<anonymous> (C:\Work\Platform\Web\Web.App\node_modules\webpack\lib\SourceMapDevToolPlugin.js:42:11)
    at Compilation.applyPlugins1 (C:\Work\Platform\Web\Web.App\node_modules\webpack\node_modules\tapable\lib\Tapable.js:75:14)
    at self.applyPluginsAsync.err (C:\Work\Platform\Web\Web.App\node_modules\webpack\lib\Compilation.js:605:11)
    at next (C:\Work\Platform\Web\Web.App\node_modules\webpack\node_modules\tapable\lib\Tapable.js:138:11)
    at Compilation.compilation.plugin (C:\Work\Platform\Web\Web.App\node_modules\webpack\lib\optimize\UglifyJsPlugin.js:140:5)
    at Compilation.applyPluginsAsyncSeries (C:\Work\Platform\Web\Web.App\node_modules\webpack\node_modules\tapable\lib\Tapable.js:142:13)
    at self.applyPluginsAsync.err (C:\Work\Platform\Web\Web.App\node_modules\webpack\lib\Compilation.js:601:10)
    at next (C:\Work\Platform\Web\Web.App\node_modules\webpack\node_modules\tapable\lib\Tapable.js:138:11)
    at ExtractTextPlugin.<anonymous> (C:\Work\Platform\Web\Web.App\node_modules\extract-text-webpack-plugin\index.js:316:4)
    at Compilation.applyPluginsAsyncSeries (C:\Work\Platform\Web\Web.App\node_modules\webpack\node_modules\tapable\lib\Tapable.js:142:13)
    at sealPart2 (C:\Work\Platform\Web\Web.App\node_modules\webpack\lib\Compilation.js:597:9)
    at next (C:\Work\Platform\Web\Web.App\node_modules\webpack\node_modules\tapable\lib\Tapable.js:138:11)
    at ExtractTextPlugin.<anonymous> (C:\Work\Platform\Web\Web.App\node_modules\extract-text-webpack-plugin\index.js:292:5)
    at C:\Work\Platform\Web\Web.App\node_modules\extract-text-webpack-plugin\node_modules\async\lib\async.js:52:16
    at Object.async.forEachOf.async.eachOf (C:\Work\Platform\Web\Web.App\node_modules\extract-text-webpack-plugin\node_modules\async\lib\async.js:236:30)
    at Object.async.forEach.async.each (C:\Work\Platform\Web\Web.App\node_modules\extract-text-webpack-plugin\node_modules\async\lib\async.js:209:22)
    at ExtractTextPlugin.<anonymous> (C:\Work\Platform\Web\Web.App\node_modules\extract-text-webpack-plugin\index.js:244:10)
    at Compilation.applyPluginsAsyncSeries (C:\Work\Platform\Web\Web.App\node_modules\webpack\node_modules\tapable\lib\Tapable.js:142:13)
@karol-f
Copy link

karol-f commented Jan 26, 2017

+1

Error: Invalid mapping: {"generated":{"line":11,"column":21330},"source":"webpack:///src/demo/styles/node_modules/foundation-sites/scss/util/_mixins.scss","original":{"line":139,"column":-1},"name":null}
    at SourceMapGenerator_validateMapping [as _validateMapping] (/Users/Karol/www/projects/project/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:277:13)
    at SourceMapGenerator_addMapping [as addMapping] (/Users/Karol/www/projects/project/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:101:12)
    at /Users/Karol/www/projects/project/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:345:13
    at SourceNode_walk [as walk] (/Users/Karol/www/projects/project/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:224:9)
    at SourceNode_walk [as walk] (/Users/Karol/www/projects/project/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:220:13)
    at SourceNode_walk [as walk] (/Users/Karol/www/projects/project/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:220:13)
    at SourceNode_walk [as walk] (/Users/Karol/www/projects/project/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:220:13)
    at SourceNode_toStringWithSourceMap [as toStringWithSourceMap] (/Users/Karol/www/projects/project/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:336:8)
    at ConcatSource.proto.sourceAndMap (/Users/Karol/www/projects/project/node_modules/webpack-sources/lib/SourceAndMapMixin.js:28:32)
    at Compilation.<anonymous> (/Users/Karol/www/projects/project/node_modules/webpack/lib/SourceMapDevToolPlugin.js:57:32)
    at Array.map (native)
    at Compilation.<anonymous> (/Users/Karol/www/projects/project/node_modules/webpack/lib/SourceMapDevToolPlugin.js:43:84)
    at Array.forEach (native)
    at Compilation.<anonymous> (/Users/Karol/www/projects/project/node_modules/webpack/lib/SourceMapDevToolPlugin.js:42:11)
    at Compilation.applyPlugins1 (/Users/Karol/www/projects/project/node_modules/tapable/lib/Tapable.js:75:14)
    at self.applyPluginsAsync.err (/Users/Karol/www/projects/project/node_modules/webpack/lib/Compilation.js:605:11)
    at next (/Users/Karol/www/projects/project/node_modules/tapable/lib/Tapable.js:138:11)
    at Compilation.compilation.plugin (/Users/Karol/www/projects/project/node_modules/webpack/lib/BannerPlugin.js:45:5)
    at next (/Users/Karol/www/projects/project/node_modules/tapable/lib/Tapable.js:140:14)
    at Compilation.compilation.plugin (/Users/Karol/www/projects/project/node_modules/webpack/lib/optimize/UglifyJsPlugin.js:140:5)
    at Compilation.applyPluginsAsyncSeries (/Users/Karol/www/projects/project/node_modules/tapable/lib/Tapable.js:142:13)
    at self.applyPluginsAsync.err (/Users/Karol/www/projects/project/node_modules/webpack/lib/Compilation.js:601:10)
    at next (/Users/Karol/www/projects/project/node_modules/tapable/lib/Tapable.js:138:11)
    at ExtractTextPlugin.<anonymous> (/Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/index.js:314:4)
    at Compilation.applyPluginsAsyncSeries (/Users/Karol/www/projects/project/node_modules/tapable/lib/Tapable.js:142:13)
    at sealPart2 (/Users/Karol/www/projects/project/node_modules/webpack/lib/Compilation.js:597:9)
    at next (/Users/Karol/www/projects/project/node_modules/tapable/lib/Tapable.js:138:11)
    at ExtractTextPlugin.<anonymous> (/Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/index.js:290:5)
    at /Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:356:16
    at iteratorCallback (/Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:936:13)
    at /Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:840:16
    at /Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/index.js:274:6
    at /Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:356:16
    at iteratorCallback (/Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:936:13)
    at /Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:840:16
    at /Users/Karol/www/projects/project/node_modules/extract-text-webpack-plugin/index.js:264:9
    at rebuilding.forEach.cb (/Users/Karol/www/projects/project/node_modules/webpack/lib/Compilation.js:475:29)
    at Array.forEach (native)
    at callback (/Users/Karol/www/projects/project/node_modules/webpack/lib/Compilation.js:475:15)
    at processModuleDependencies (/Users/Karol/www/projects/project/node_modules/webpack/lib/Compilation.js:494:5)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

@maggo
Copy link

maggo commented Feb 13, 2017

Can confirm, same error and stack trace. It's also fixed by setting the sourceMap option in css-loader to false

@jhnns
Copy link
Member

jhnns commented Feb 13, 2017

Please provide a small example repository that demonstrates the error. Could you also check if the error is still there without the sass-loader?

@karol-f
Copy link

karol-f commented Feb 13, 2017

@jhnns My other CSS files without sass-loader work fine with source maps (I use there postcss-loader and css-loader). Also this only happens when I build for production so I'm using extractTextWebpackPlugin and css-loader.

@maggo
Copy link

maggo commented Feb 13, 2017

Hi @jhnns in my case the error seems to be extract-text-webpack-plugin in conjunction with the minimize setting from LoaderOptionsPlugin see my example repo: https://github.com/maggo/sass-loader-sourcemaps-bug

@jhnns
Copy link
Member

jhnns commented Feb 13, 2017

@maggo thanks for the example repo. The processed source map contains a negative column number. I don't know how we can fix that since these column numbers come from node-sass.

I've tried to compile the index.scss with node-sass itself and it seems to work, so maybe that's an issue with webpack's source map consumer :(

I think, this is also related to #272

@ash14
Copy link

ash14 commented Feb 15, 2017

I'm having the same issue. If anyone's interested I have a simpler case reproduced in this repo

One possible workaround is to use outputStyle: 'compact' instead of compressed

@kfbow
Copy link

kfbow commented Feb 22, 2017

+1

Error: Invalid mapping: {"generated":{"line":1,"column":1670},"source":"webpack:///source/scss/foundation/components/_global.scss","original":{"line":239,"column":-1},"name":null}

@jhnns jhnns changed the title Webpack 2 error producing sourcemaps with webpack -p Invalid mapping: Negative column number Feb 23, 2017
@albertogasparin
Copy link

I'm also having this issue. @ash14 Changing the outputStyle does not make any difference (tried all options). The file causing the error is imported from the node_modules folder (source here)

Error: Invalid mapping: {"generated":{"line":2233,"column":0},"source":"/.../node_modules/pollicino-ui/scss/_mixins.scss","original":{"line":64,"column":-1},"name":null}
    at SourceMapGenerator_validateMapping [as _validateMapping] (/.../node_modules/source-map/lib/source-map-generator.js:277:13)
    at SourceMapGenerator_addMapping [as addMapping] (/.../node_modules/source-map/lib/source-map-generator.js:101:12)
    ...

@jhnns
Copy link
Member

jhnns commented Mar 3, 2017

@albertogasparin awesome! This is a good starting point to locate the error. Unfortunately, I don't have time for that now, but I would be glad if someone of you could tackle it.

Crazy, I've never seen mixins and & used together:

@mixin FormField {
  position: relative;
  display: flex;
  line-height: $Pollicino-FormField-height;

  &-label {     // <---- that's where the error is coming from

@karol-f
Copy link

karol-f commented Mar 3, 2017

@jhnns It's pretty common. I've checked and I have error due to Foundation CSS mixins - they also have & in _mixins.scss - https://github.com/zurb/foundation-sites/blob/develop/scss/util/_mixins.scss.

@b4cedev
Copy link

b4cedev commented Mar 15, 2017

+1
Just ran into the same problem: with webpack 2 due to file foundation-si
tes/scss/components/_button.scss from bower install (v.6.2.4):

Invalid mapping: {"generated":{"line":2828,"column":2},"source":"webpack:///bower_components/foundation-si tes/scss/components/_button.scss","original":{"line":155,"column":-10},"name":null}

Only "compressed" output triggered it, "compact" & "verbose" are working.

@zeusbangayan
Copy link

I have the same problem:

{
loader: "sass-loader",
options: {
sourceMap: true,
outputStyle: PROD ? "compressed" : "nested"
}
},

Compressed is NOT working.

I agree with @b4cedev, only Compact and verbose are working.

@Vinnl
Copy link

Vinnl commented Mar 19, 2017

(I've hesitated posting this since two people already seem to have observed the same, but just in case, another confirmation with details...)

I'm running into this too, and with a similar configuration: ExtractTextPlugin, Sass and PostCSS. Indeed adding an outputStyle of compact made the error go away. The error message points to a line containing only &:focus {, also located inside a mixin (in Foundations _text.scss).

@Andrey7287
Copy link

Any solution ?

outputStyle: 'compact' doesn`t work for me :( .

@narthollis
Copy link
Author

It appears this may be related to sass/libsass#2312

@alexander-akait
Copy link
Member

Confirmed, it is related to sass/libsass#2312, need fix in node-sass

@alexander-akait
Copy link
Member

alexander-akait commented May 23, 2017

Close here, not related to sass-loader, we need to search C++ superman and fix it in libsass

@lili21
Copy link

lili21 commented Jun 19, 2017

@Andrey7287

setting the sourceMap option in css-loader to false

@iwinux
Copy link

iwinux commented Jul 5, 2017

Temp fix:

{
  test: /\.scss$/,
  use: [
    'style-loader',
    { loader: 'css-loader', options: { sourceMap: true } },
    { loader: 'sass-loader', options: { sourceMap: false } },  // disable source map
  ]
}

At least we can see the original filename of CSS styles...

@mishelen
Copy link

mishelen commented Sep 6, 2017

In my case value of column number is equal to length of mixin name. I use expanded outputStyle

"source":"/app/node_modules/foundation-sites/scss/forms/_text.scss",
"original":{"line":111,"column":-12},"name":null}

And that mixin:

@mixin form-element {
//....
  &:focus {}
}

May be it occasion)) But logically, what we do with sass placeholder? Replace! even with mixin name, isnt it)) Also name includes hyphen (negative, minus), Foundation seems to be loving hyphens in names))

@Nantris
Copy link

Nantris commented Sep 6, 2017

Regarding, "I used expanded outputStyle"

@mishelen Can you elaborate on what you mean by this? Is there a way to have it show additional details on failure? I've not been able to track down the source of my occurrence.

@mishelen
Copy link

mishelen commented Sep 6, 2017

Ok, part of related webpack config is:

// ...
devtool: process.env.NODE_ENV === 'PRODUCTION' ? 'source-map' : 'inline-source-map',
// ...
{
     test: /\.scss$/, use: ExtractTextPlugin.extract({
     fallback: 'style-loader',
     use: [{
     loader: 'css-loader', options: {
          sourceMap: true
     }
}, {
     loader: 'postcss-loader',
     options: {
     sourceMap: true,
     plugins: function () {
          return [
               autoprefixer({
                    cascade: false,
                         browsers: ['last 2 versions']
                    })
               ];
          }
     }
}, {
     loader: 'sass-loader', options: {
          sourceMap: true,
          outputStyle: 'expanded',
          includePaths: [
               path.resolve(ROOT_PATH, 'node_modules/foundation-sites/scss')
          ]
     }
}]

I'm have just noticed that webpack without -p flag compiles styles nicely. This flag launch webpack's Uglify plugin, as all known. And define process.env.NODE_ENV="production". But I by hand set this variable and remove flag -p and this says the problem is in UglifyJS but I dont know how it related to SCSS... and source maps

Stacktrace of error is repeated locally and on Heroku:

/home/mishelen/projects/nonameapp/node_modules/source-map/lib/source-map-generator.js:289
      throw new Error('Invalid mapping: ' + JSON.stringify({
      ^

Error: Invalid mapping: {"generated":{"line":1,"column":39305},"source":"/home/mishelen/projects/nonameapp/node_modules/foundation-sites/scss/forms/_text.scss","original":{"line":111,"column":-12},"name":null}
    at SourceMapGenerator_validateMapping [as _validateMapping] (/home/mishelen/projects/nonameapp/node_modules/source-map/lib/source-map-generator.js:289:13)
    at SourceMapGenerator_addMapping [as addMapping] (/home/mishelen/projects/nonameapp/node_modules/source-map/lib/source-map-generator.js:101:12)
    at /home/mishelen/projects/nonameapp/node_modules/source-map/lib/source-node.js:351:13
    at SourceNode_walk [as walk] (/home/mishelen/projects/nonameapp/node_modules/source-map/lib/source-node.js:230:9)
    at SourceNode_walk [as walk] (/home/mishelen/projects/nonameapp/node_modules/source-map/lib/source-node.js:226:13)
    at SourceNode_walk [as walk] (/home/mishelen/projects/nonameapp/node_modules/source-map/lib/source-node.js:226:13)
    at SourceNode_toStringWithSourceMap [as toStringWithSourceMap] (/home/mishelen/projects/nonameapp/node_modules/source-map/lib/source-node.js:342:8)
    at ConcatSource.proto.sourceAndMap (/home/mishelen/projects/nonameapp/node_modules/webpack-sources/lib/SourceAndMapMixin.js:30:32)
    at getTaskForFile (/home/mishelen/projects/nonameapp/node_modules/webpack/lib/SourceMapDevToolPlugin.js:33:30)
    at chunk.files.forEach.file (/home/mishelen/projects/nonameapp/node_modules/webpack/lib/SourceMapDevToolPlugin.js:91:21)
    at Array.forEach (<anonymous>)
    at /home/mishelen/projects/nonameapp/node_modules/webpack/lib/SourceMapDevToolPlugin.js:89:18
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (/home/mishelen/projects/nonameapp/node_modules/webpack/lib/SourceMapDevToolPlugin.js:88:12)
    at Compilation.applyPlugins1 (/home/mishelen/projects/nonameapp/node_modules/tapable/lib/Tapable.js:75:14)
    at self.applyPluginsAsync.err (/home/mishelen/projects/nonameapp/node_modules/webpack/lib/Compilation.js:661:11)
    at next (/home/mishelen/projects/nonameapp/node_modules/tapable/lib/Tapable.js:202:11)
    at Compilation.<anonymous> (/home/mishelen/projects/nonameapp/node_modules/uglifyjs-webpack-plugin/dist/index.js:244:6)
    at Compilation.applyPluginsAsyncSeries (/home/mishelen/projects/nonameapp/node_modules/tapable/lib/Tapable.js:206:13)
    at self.applyPluginsAsync.err (/home/mishelen/projects/nonameapp/node_modules/webpack/lib/Compilation.js:657:10)
    at next (/home/mishelen/projects/nonameapp/node_modules/tapable/lib/Tapable.js:202:11)
    at Compilation.<anonymous> (/home/mishelen/projects/nonameapp/node_modules/extract-text-webpack-plugin/dist/index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (/home/mishelen/projects/nonameapp/node_modules/tapable/lib/Tapable.js:206:13)
    at sealPart2 (/home/mishelen/projects/nonameapp/node_modules/webpack/lib/Compilation.js:653:9)
    at next (/home/mishelen/projects/nonameapp/node_modules/tapable/lib/Tapable.js:202:11)
    at /home/mishelen/projects/nonameapp/node_modules/extract-text-webpack-plugin/dist/index.js:241:13
    at /home/mishelen/projects/nonameapp/node_modules/async/dist/async.js:421:16
    at iteratorCallback (/home/mishelen/projects/nonameapp/node_modules/async/dist/async.js:998:13)
    at /home/mishelen/projects/nonameapp/node_modules/async/dist/async.js:906:16
    at /home/mishelen/projects/nonameapp/node_modules/extract-text-webpack-plugin/dist/index.js:224:15

@Nantris
Copy link

Nantris commented Sep 6, 2017

@mishelen Thank you. This is a hugely helpful reference point in trying to pin down my own instance of this issue.

@denyo
Copy link

denyo commented Sep 11, 2017

Here is what I just figured out as a workaround.
The location where I had the error with column: -1 looked like this:

@mixin flexWithCols {
  display: flex;

  &__col {
    ... // more styles here
  }
}

The error appeared on the line with &__col { which is intended by 2 spaces.
Now simply by changing the indentation to 4 spaces fixes the error:

@mixin flexWithCols {
  display: flex;

    &__col {
      ... // more styles here
    }
}

@jotavejv
Copy link

jotavejv commented Oct 13, 2017

If the problem is related to sass, it is probably due to "compressed" outputStyle. I figured it out just change compressed to "compact".

@ingro
Copy link

ingro commented Oct 17, 2017

Thanks @jotavejv , that fixed my error!

@drewlustro
Copy link

+1 on this... anyone know how to keep sourceMap: true for both the css-loader and sass-loader ?

@jcapozzi
Copy link

jcapozzi commented Nov 30, 2017

Google brought me here after searching for a solution for sass/libsass#2312 which is sadly locked so I can't comment there but maybe this will help someone else:

Before:
.parent { &:hover { color: red; } }

After:
.parent { @at-root #{&}:hover { color: red; } }

jordan-enev added a commit to jordan-enev/react-redux-starter-kit that referenced this issue Dec 6, 2017
There is a problem with sourcemaps generation on a production build (`yarn build`). The problem is described at the below link, as the current fix is to, change the default output style to `compact`:
webpack-contrib/sass-loader#351 (comment)
jordan-enev added a commit to jordan-enev/react-redux-starter-kit that referenced this issue Dec 6, 2017
There is a problem with sourcemaps generation on a production build (`yarn build`). The problem is described at the below link, as the current fix is to, change the default output style to `compact`:
webpack-contrib/sass-loader#351 (comment)
@HIMISOCOOL
Copy link

like @jotavejv changing that option did stuff.
See here for possible values and try one.
Expanded worked for me

@leocaseiro
Copy link

leocaseiro commented Jan 12, 2018

@jcapozzi that's the only solution that fixed my issue!

Many many many thanks!

Now I'm going to submit a PR to material-components-web

@bilalmalkoc
Copy link

This worked for me.

{
    test: /\.(sa|sc|c)ss$/,
    use: [
        MiniCssExtractPlugin.loader,
        'css-loader',
        {
            loader: 'postcss-loader',
            options: {
                sourceMap: true,
                postcssOptions: {
                    plugins: [autoprefixer()],
                },
            },
        },
        'sass-loader',
    ],
},

@orassayag
Copy link

I had the same issue, my problem was at @import url('./all.css');
I changed it to @import './all.css'; and the error gone!

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

No branches or pull requests