-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
DedupePlugin fails: No template for dependency: TemplateArgumentDependency #1082
DedupePlugin fails: No template for dependency: TemplateArgumentDependency #1082
Comments
Suddenly started getting the same issue, only I'm using 1.4.15 and haven't updated anything:
I'm guessing some dependency updated with breaking changes without bumping the version enough, but that's just a stab in the dark because I'm having a lot of trouble tracking down the source of this sudden error. |
Having a similar issue |
I am getting the same issue. Replicating it is kinda hard.
'use strict';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
// import ReactDOM from 'react-dom';
import Foo from './../foo/index.js'; Where Using this webpack.config.js: var webpack = require('webpack'),
path = require('path'),
ExtractTextPlugin = require('extract-text-webpack-plugin'),
devServer;
devServer = {
contentBase: __dirname + '/endpoint',
colors: true,
quiet: false,
noInfo: false,
publicPath: '/',
historyApiFallback: true,
host: '127.0.0.1',
port: 8000,
hot: true
};
module.exports = {
devtool: 'source-map',
debug: false,
devServer: devServer,
context: __dirname + '/src',
entry: {
app: [
'./'
]
},
output: {
path: __dirname + '/endpoint',
filename: '[name].js',
publicPath: devServer.publicPath
},
plugins: [
new ExtractTextPlugin('app.css', {
allChunks: true
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.OldWatchingPlugin(),
// new webpack.NewWatchingPlugin(),
// https://github.com/webpack/docs/wiki/optimization#deduplication
new webpack.optimize.DedupePlugin(),
new webpack.NoErrorsPlugin()
],
module: {
loaders: [
{
test: /\.js$/,
include: path.resolve(__dirname, './src'),
loader: 'babel'
}
]
},
resolve: {
extensions: [
'',
'.js'
]
}
};
|
Removing |
Has anyone figured out why this is causing this issue? I'm getting the same issue but deduping would be awesome rather than just getting rid of the plugin. |
Since this is happening only when using |
I'm getting the same issue, I use it in webpack-dev-middleware. |
Getting the same error without using |
|
+1 |
1 similar comment
+1 |
get the same issue today. |
+1 |
I was having the same issue using Webpack 1.11.0. Upgrading to 1.12.9 seems to have fixed the problem. You folks should try again with a newer version and see if this issue can be closed. |
- Webpack: Export React as external, not Victory - Upgrade Webpack to 1.12.9 for a fix to webpack/webpack#1082
I just hit this issue after adding Did anyone ever find the root cause to this issue? |
Thanks! For anyone encountering this in the future, the comment referenced above says:
I was using a I'll alert the |
did anyone fix this issue , everything works fine on my locale machine but when i try to compile on the server i receive this error |
Do you have any dependencies that are requiring webpack? Also, did you install webpack globally on your local machine? |
@tribou I'm seeing this too
But unfortunately there are no other useful information and I removed the Dedupe Plugin already. Any idea what can I do to fix it? Everything is locally installed. |
The issue I encountered above was that a dependency I was using didn't have webpack correctly listed as a |
@tribou Thanks, I will look at that too. But I guess my problem is a bit weirder - since exactly the same project copied to another machine (including node_modules) works fine on one machine but has this error on the other machine. |
In case this helps anyone, I think my issue was related to using |
This matches the webapck version in formidable-playbook and works around webpack/webpack#1082
I'm closing this as there's no |
Hi folks,
Great job with Webpack, this framework is really helping my project to succeed. I'm using version
1.8.11
throughgulp-webpack
and after I've addedreact-intl
in my project this problem started to happen:After some investigation and checking out some suggestions in the webpack Gitter chat, I decided to remove the Dedupe Plugin and then everything works again, but my bundle size has increased significantly.
Any ideas on how to make the DedupePlugin work again? If I get any pointers I could try to solve the issue myself. Any help here is much appreciated.
Alan
The text was updated successfully, but these errors were encountered: