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.

Partial Expressions in require call

See original GitHub issue

I’m submitting a bug report

Webpack version: 3.10.0

Webpack Karma version: 2.0.8/9

Karma version: 0.12.37

Please tell us about your environment: OSX 10.12.6

Browser: Phantom

Current behavior: partial expressions in require statements were working fine in version 2.0.5-7 but are now causing 404 responses

Expected/desired behavior: Asynchronously load module

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.

require(['views/' + view], function(view) {

works fine in Use karma-webpack 2.0.7 however using karma-webpack 2.0.8-2.0.9:

WARN [web-server]: 404: /var/folders/qr/vvd9_2fx45d5pfgfbb8qhbmh0000gn/T/_karma_webpack_/0.bundle.js

Changing the dependancy to a hard coded string enables the module to be found.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alanbentleycommented, Dec 27, 2017

Sorry for the delay - I can confirm that fix-url-regex-for-custom-file-handler fixes my issue

1reaction
rodmaxcommented, Dec 21, 2017

Hi guys could you verify fix from #293 Quick steps to setup env

git clone git@github.com:rodmax/karma-webpack.git
cd karma-webpack
git checkout fix-url-regex-for-custom-file-handler
npm i 
npm link
npm i webpack@3.6.0   # you should install peer dependency for using "npm link", you may choose your version of webpack instead 3.6.0
npm run build  # after it you should see "js" files in ./lib dir

cd path/to/you-repo
npm link karma-webpack  # mount my pull-requested version
npm run tests # run your tests
Read more comments on GitHub >

github_iconTop Results From Across the Web

Partials | Handlebars
Partials are normal Handlebars templates that may be called directly ... select the partial to be executed by using sub expression syntax.
Read more >
Calculus II - Partial Fractions - Pauls Online Math Notes
In this section we will use partial fractions to rewrite integrands into a form that will allow us to do integrals involving some...
Read more >
Partial Fractions - Math is Fun
The method is called "Partial Fraction Decomposition", and goes like this: Step 1: Factor the bottom. Partial Fractions. Step 2: Write one partial...
Read more >
How to convert an expression tree to a partial SQL query?
Yes it is possible, you can parse a LINQ expression tree using the visitor pattern. You would need to construct a query translator...
Read more >
GitHub - tc39/proposal-partial-application
Partial Application — A call or new expression with zero or more placeholder arguments, where applied expressions are immediately evaluated and fixed in...
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