Cannot resolve module [object Object] #215
Comments
Well, for some reason version 1.0.1 doesn't works with webpack 1.x |
Hi I'm having the same issue. I also use version 1.0.1 and my node version is 6.2.2. Here's the loader config for the plugin:
Please let me know if I can supply any additional information for resolving this issue. |
I managed to fix it by changing my loader config to
Still I think there is an issue that should be resolved, because my initial config was pretty similar to what you have in the README.md |
You have to upgrade both |
@Kovensky I know that #214 would have been fixed if I switched to the newest webpack beta but I don't like using beta versions of packages in production if I can avoid it. And |
@Kovensky doesn't |
@narek11 yes, as of the version 2 beta, and it complains at you if you do give more than one argument. Previous versions accept (up to) 3 arguments. |
I'm having this issue as well on webpack@1.13.1 and extract-text-webpack-plugin@1.0.1 I would rather not upgrade to either beta right now (upgrading webpack broke my build). Is there a workaround for this issue? Should I revert the plugin to an earlier version? @Eschon 's proposed fix didn't seem to do it for me. |
Use the documentation from the |
I'm in exactly the same position as raphaklaus was Jul 17: Node 6.2.0, extract-text-webpack-plugin@1.0.1. When using the fragment he used, I got the same error message he got. npm tells me to get answers at https://github.com/webpack/extract-text-webpack-plugin. Given that npm gave me v1.0.1, I followed the link to https://github.com/webpack/extract-text-webpack-plugin/blob/webpack-1/README.md. As I understood it, it told me to switch to the syntax Eschon used on Jul 25. First, npm told me to install webpack-load-plugins. After that, npm went back to telling me to get answers at https://github.com/webpack/extract-text-webpack-plugin. So Eschon's syntax isn't working for me and I'm in the same position as arahansen on Jul 27: I need to use a stable release in production. Do you have any idea of a condition that might have been present in Eschon's environment that I could reproduce and get this working? Is there a workaround? Thanks in advance. |
New report. I got a workaround to work. See my documentation here. |
I got into this same bind, wasn't able to update to the latest v of webpack and @Prairie-Falcon's guide saved me. Kudos!! |
Not sure if this will help, but in my case this was caused by having these lines in webpack config:
Removing them fixed the problem. |
@raphaklaus not work when i update extract-text-webpack-plugin to 2.0.0-beta.2,show errors |
having issue with webpack v1.14.0 & extract-text-webpack-plugin v1.0.1 on windows when running // webpack.config.json
{
// . . .
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel-loader'
},
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract({
fallbackLoader: 'style-loader',
loader: 'css-loader!sass-loader'
})
}
]
},
plugins: [
new ExtractTextPlugin('./public/style.css')
]
} Error output in terminal:
|
@TNT-Likely Did you add the
@aronlmin You are using the wrong syntax for the
|
Hi there! I'm trying to execute a webpack with extract-text, but I'm getting "Cannot resolve module '[object Object]'".
Here is a fragment.
Version of this plugin: 1.0.1
Node: 6.2.0. Tested in 4.4.0. And the same.
The text was updated successfully, but these errors were encountered: