question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: No template for dependency: TemplateArgumentDependency

See original GitHub issue

I am currently using webpack version 1.5.0 and karma-webpack version 1.5.3 on a project. After release of webpack version 1.6.0, I am getting the error below when running tests.

It looks like having webpack ^1.4.0 as a peerDependencies causes npm to download the latest webpack under karma-webpack’s node_modules even though webpack 1.5.3 satisfies peerDependencies requirement. Any thoughts on how to avoid these issues going further?

Error: No template for dependency: TemplateArgumentDependency
  at doDep (project/node_modules/karma-webpack/node_modules/webpack/lib/NormalModule.js:115:23)
  at Array.forEach (native)
  at doBlock (project/node_modules/karma-webpack/node_modules/webpack/lib/NormalModule.js:124:22)
  at DependenciesBlock.NormalModule.source (project/node_modules/karma-webpack/node_modules/webpack/lib/NormalModule.js:156:2)
  at Tapable.ModuleTemplate.render (project/node_modules/karma-webpack/node_modules/webpack/lib/ModuleTemplate.js:14:28)
  at Tapable.Template.renderChunkModules (project/node_modules/karma-webpack/node_modules/webpack/lib/Template.js:80:31)
  at Tapable.<anonymous> (project/node_modules/karma-webpack/node_modules/webpack/lib/MainTemplate.js:28:22)
  at Tapable.applyPlugins [as applyPluginsWaterfall] (project/node_modules/karma-webpack/node_modules/webpack/node_modules/tapable/lib/Tapable.js:37:47)
  at Tapable.MainTemplate.render (project/node_modules/karma-webpack/node_modules/webpack/lib/MainTemplate.js:112:20)
  at Tapable.createChunkAssets (project/node_modules/karma-webpack/node_modules/webpack/lib/Compilation.js:783:32)

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
gajuscommented, Sep 11, 2015

Are you using webpack.optimize.DedupePlugin() plugin? Removing the latter plugin from my config solved the issue.

0reactions
joshwienscommented, Jan 19, 2017

Resolving as this is no longer valid in 2.2.0 and resolved for 1.x

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack: ChunkRenderError: No template for dependency
The error is: phenomic:builder ChunkRenderError: No template for dependency: TemplateArgumentDependency at Compilation.createChunkAssets.
Read more >
DedupePlugin fails: No template for dependency ... - GitHub
Error : No template for dependency: TemplateArgumentDependency happens when you have multiple webpack copies installed and used the ...
Read more >
No template for dependency: "ConstDependency"
It seems that this error is caused by local install of package webpack under @angular-devkit when there is also an independent install under ......
Read more >
Invalid template errors - Azure Resource Manager
The error occurs for several reasons, like a syntax error, invalid parameter value, or circular dependency. Symptom. When a template is deployed, you...
Read more >
Dependency injection in action - Angular
@Component({ selector: 'app-hero-bios', template: ` <app-hero-bio ... Angular throws an error if it can't find the dependency during that walk.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found