-
Notifications
You must be signed in to change notification settings - Fork 6
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
getContents of undefined #13
Comments
What are you using the middleware with? |
Yeah, I'm using it with the serve-static middleware, and it appears that its never calling "write" and data is undefined inside "end". I debugged a little more, I think this happens when its sending a 304 not modified. It seems to work if I add something like below, but I'm not sure that is a good way to handle it.
Here are the debug logs:
|
Thanks for the info! Sounds like it might be an easy fix. I just need to figure how to write a test for this and will make a new patch release. |
Made a 0.4.2 release which should fix the issue. |
Fyi, doesn't look like 0.4.2 is up on npm. I hit this issue running with browserSync, 0.4.2 installed off GH works. |
Odd... maybe |
I am getting the below error when using this plugin. It is strange, I don't see it when I make individual requests for the files, but it happens every time when I request the full html page. It used to work fine in 0.4.0, this only started with 0.4.1.
I am using the plugin to inject amd wrappers for some files, my usage is as follows:
The text was updated successfully, but these errors were encountered: