-
Notifications
You must be signed in to change notification settings - Fork 32
Resolved config doesn't contain a resolve configuration #24
Comments
And go figure, as soon as I post this, I figure out the problem. |
@benduran what was the issue? Having the same problem here. |
@piersadrian For me, it's a problem that is harder to correct. My build is heavily reliant on CLI arguments, which is something mocha doesn't handle out of the box (meaning pass-through). My webpack.config wasn't being transformed correctly because of this. |
Hi! If this is a problem, use v1.9.0 until I fix that. I released this one as a major release so that npm doesn't auto install this version for people having "^1.9.0" in their package.json. I'll look into that as soon as I can. |
I can't really reproduce that, @piersadrian can you give me more info about your dev environment and configuration? |
@piersadrian are you using |
I can't replicate the issue at the moment and I can't investigate without more information, so I will close that for now, feel free to comment if you can provide more info. |
+1 having the same issue, {
"presets": ["react", "es2015", "stage-1", "stage-0"],
"plugins": [
"react-hot-loader/babel",
[
"babel-plugin-webpack-alias",
{
"config": "webpack.config.dev.js",
"findConfig": true
}
]
]
} webpack.config.dev.js: const path = require('path');
const webpack = require('webpack');
module.exports = {
// ...
resolve: {
modulesDirectories: ['node_modules', 'client', 'components', 'stores'],
extensions: ['', '.js', '.scss', 'svg', 'ttf', 'woff', 'eot'],
root: [path.join(__dirname, './client')],
alias: {
assets: path.resolve(__dirname, './client/assets'),
stylesheets: path.resolve(__dirname, './client/stylesheets'),
client: path.resolve(__dirname, './client'),
components: path.resolve(__dirname, './client/components'),
actions: path.resolve(__dirname, './client/actions'),
reducers: path.resolve(__dirname, './client/reducers'),
},
},
}; EDIT: To anyone having this problem: try using path.join() instead of path.resolve(). I think that's what causing it. |
@savovs Thanks for pointing this out. I ended up running into this issue again yesterday when setting up a new test project. Rolling back to I'll upgrade back to the current version and try swapping over to |
@benduran @savovs don't worry about using |
+1 Having the same issue, with similar configuration, on version |
Thanks for the feedback, at the moment the only way to fix this seems to rollback to I don't have time to work on this for now. Can anyone make a small repo which replicates this issue? |
@McChen have you tried changing |
@savovs I was using |
yep, 1.8.2 works like a charm. |
@pawelrychlik I am trying this with 1.8.2 but it is not working are you using |
@kwelch
And I'm explicitly using exactly |
I've seen this issue in a closed github issue, but I just installed
v2.0.0
of this plugin and received the same issue. Here are my configs for reference:Webpack.config
package.json babel config
Error, for reference
The text was updated successfully, but these errors were encountered: