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

Cannot use extract-text-webpack-plugin. #28

Open
sweetnewyork opened this issue Apr 9, 2017 · 2 comments
Open

Cannot use extract-text-webpack-plugin. #28

sweetnewyork opened this issue Apr 9, 2017 · 2 comments

Comments

@sweetnewyork
Copy link

sweetnewyork commented Apr 9, 2017

ERROR in ./~/bootstrap-webpack/index.loader.js!./resources/bootstrap.config.js

Module not found: Error: Can't resolve '[object Object],[object Object],[object Object],[object Object],[object Object]'

with the configuration in bootstrap.config.js.

module.exports = {
  styleLoader: require('extract-text-webpack-plugin').extract({fallback:'style-loader',use:'css-loader!postcss-loader!less-loader'}),
  scripts: {
    ...
  },
  styles: {
    ...
  }
};

I've already installed the extract-text-webpack-plugin, and i notice that, without the plugin, the configuraion could be working:

module.exports = {
  styleLoader: 'style-loader!-loader!less-loader',
  scripts: {
    ...
  },
  styles: {
    ...
  }
};

I notice that the api of the extract-text-webpack-plugin changed. That's why the configuration not working?

@liangklfang
Copy link

I have the same issue here 👍

ModuleNotFoundError: Module not found: Error: Can't resolve '[object Object]' in 'C:\Users\Administrator\Desktop\react-universal-bucket\src\theme'

@bline
Copy link
Owner

bline commented May 15, 2017 via email

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

3 participants