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
Integrate with gulp-webpack problem : __webpack_require__(...).call is not a function #41
Comments
I found the point. If I have a file (main.js) require a template like this:
and in the same dir with main.js has a file
the error above. |
Hey Zhiyan. Sounds like 'a' is not resolving correctly. Can you just link me to the exact code that reproduces the issue so I can debug it? |
I just spent two hours debugging the same [or similar] issue. I wans't using Gulp though. The packaged JS threw the same error, The problem was this code in my template:
It went away after I changed the above to this:
I'm not sure why that fixed the problem, but it smells like |
Can either of you reproduce the issue either with a unit test or just uploading a complete reproduction of the issue (e.g. template and webpack config). You both provided one but not the other. Would make it easier for me to debug the issue. |
hi, altano, I create a simple instance to reproduct the problem: template.handlebars:
index.js:
a.js:
index.html:
webpack.config.js:
when I browser index.html, the console show:
but when I replace the name of |
I hit this same issue when using a variable called
Is it possible to configure handlebars-loader to exclude Edit: I tried setting |
Have the exact same problem with {{url}} and changing to {{this.url}} fixed my problem |
@ericmatthys proposed a solution in this PR: #57 It looks fine to me (in addition to the Thanks! |
@altano PR works for me (had issue with {{url}} previously) |
I have an issue similar to this. I have template
When I'm trying to use this template, I get |
Same issue here, url treated as helper name instead of variable |
Hi, i use gulp-webpack and handlebars-loader , but find a problem :
gulpfile.js:
entry.js:
when run
gulp
, there is no error output.but i use the browser,find the error in console:So, i open the file which packed:
module 3 is not a function, but the data i supplied.
The text was updated successfully, but these errors were encountered: