-
Notifications
You must be signed in to change notification settings - Fork 1.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
preprocessors.shift(...) is not a function #1521
preprocessors.shift(...) is not a function #1521
Comments
Thanks for reporting, you are probably right with the commit, but I have no idea how this could happen, as even |
This is the code that I'm looking at that's blowing up: preprocessors.shift()(content, file, nextPreprocessor) I believe that what's being shifted isn't a function. That's what the error means... Digging... |
It looks like the line: instances[name] = injector.get('preprocessor:' + name) is actually assigning The preprocessor I'm working with is |
Right, I see, thanks a lot for digging. So the best thing is probably to a) not do the assignment when it fails and b) ensure when pushing into preprocessors that the element is not |
I agree. In addition, I don't think that this fix will resolve my ultimate issue. Do you know why the webpack preprocessor isn't getting added? Will things work when webpack hasn't yet been added? |
karma-webpack won't work unless you use my fork codymikol/karma-webpack#63 that is probably what you are running into |
Ah, I see. Sounds good. I'll subscribe to that PR so I know when it's merged. Thanks for your work on |
I just hit this issue today with Karma 0.13.10 on OS X, upgrading from an older version and tyring to get |
Same error here with |
The same error with |
|
Also seeing this issue. Any suggestions on how to fix/work around? |
@gep13 I've also run in this error when i was using plugins: [
…
'karma-sourcemap-loader'
], So recheck your |
+1 for karma-live-preprocessor Edit: I found it's because I forget to put "karma-live-preprocessor" in plugin array. After I add it everything is OK. |
Same issue with 0.13.16. 😿 |
Please everyone can you test if #1777 works for you? I'm not able to reproduce the issue myself, so I can only guess atm. |
I think this commit is giving me this error:
Anything off the top of your head? Everything's working fine with version
0.13.1
but breaks with version0.13.2
. Do you know what might be the problem? Or do you need me to dig more?The text was updated successfully, but these errors were encountered: