Skip to content
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

How to debug [middleware:karma]: Invalid file type, defaulting to js. statements. #3291

Closed
vort3xxx opened this issue Apr 5, 2019 · 0 comments · Fixed by #3292 or karronoli/redpen#10 · May be fixed by Omrisnyk/npm-lockfiles#201
Closed

Comments

@vort3xxx
Copy link

vort3xxx commented Apr 5, 2019

After upgrading to karma 3.1.0+ I see a new error.

[middleware:karma]: Invalid file type, defaulting to js. statements.

Unlike other issue posts with this issue, it is not apparent what file type it is seeing that offends karma. It is not actually echoing anything to the console like .svg that can be used to identify the problem.

Karma should tell me what specific files it is not happy about loading. Instead it gives me a generic error with insufficient contextual information to solve my problem.

Environment Details

  • Karma version: All versions from 3.1.0 and up.

  • Relevant part of your karma.config.js file

files: [
            { pattern: 'test/test-index.js' }
        ],

I'm using they "Alternate usage" with an index file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant