Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

WebPack 2 query object in loader chain #196

Closed
texastoland opened this issue Jun 10, 2016 · 3 comments
Closed

WebPack 2 query object in loader chain #196

texastoland opened this issue Jun 10, 2016 · 3 comments

Comments

@texastoland
Copy link
Contributor

Any idea where to look to fix this?

Loader
{
          test: /\.css$/,
          loaders: ExtractTextPlugin.extract([
            "style",
            {
              loader: "css",
              query: {
                camelCase: true,
                importLoaders: 1,
                localIdentName: "[path][name]--[local]",
                modules: true,
              },
            },
            "postcss",
          ]),
        }
Error
ERROR in ./src/…
Module not found: Error: Can't resolve '[object Object]' in '/Users/dnalot/Documents/Jane/jane-com'
 @ ./src/…

CC @kentcdodds.

@texastoland
Copy link
Contributor Author

texastoland commented Jun 10, 2016

I strongly suspect it's loaders.join("!") in ExtractTextPlugin.extract(). Trying it out. CC @spicydonuts.

@kentcdodds
Copy link

Did it work @AppShipIt? I see you referenced this issue in a commit

@texastoland
Copy link
Contributor Author

Definitely it. I wrote up a test case before I fell asleep and will PR before end of day!

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

2 participants