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

[karma-server]: UncaughtException:: file.detectType is not a function #2093

Closed
gonzojive opened this issue Jul 31, 2020 · 9 comments · Fixed by #2603
Closed

[karma-server]: UncaughtException:: file.detectType is not a function #2093

gonzojive opened this issue Jul 31, 2020 · 9 comments · Fixed by #2603

Comments

@gonzojive
Copy link

Please see the Karma project's karma-runner/karma#3537, where they say the issue is with rules_nodejs.

gonzojive added a commit to gonzojive/gTile that referenced this issue Jul 31, 2020
gonzojive added a commit to gonzojive/gTile that referenced this issue Jul 31, 2020
@applmak
Copy link
Contributor

applmak commented Aug 20, 2020

Confirmed: karma ^5.1.0 breaks the implementation of concatjs. The right fix to to convert bundledFile (here) to a File. I suspect this could be done by importing {File} from @types/karma, if it's exposed.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs!

@github-actions github-actions bot added the Can Close? We will close this in 30 days if there is no further activity label Oct 20, 2020
@github-actions
Copy link

github-actions bot commented Nov 4, 2020

This issue was automatically closed because it went two weeks without a reply since it was labeled "Can Close?"

@github-actions github-actions bot closed this as completed Nov 4, 2020
@mattem mattem removed the Can Close? We will close this in 30 days if there is no further activity label Nov 4, 2020
@mattem
Copy link
Collaborator

mattem commented Nov 4, 2020

This is likely still an issue, reopening

@mattem mattem reopened this Nov 4, 2020
@sgammon
Copy link
Contributor

sgammon commented Dec 12, 2020

just ran into this. still an issue

@sgammon
Copy link
Contributor

sgammon commented Dec 14, 2020

for anyone encountering this, i was able to work around it with the following pinned versions in package.json, which roughly match the rules_nodejs deps:

    "karma": "~4.1.0",
    "karma-coverage": "^2.0.1",
    "karma-chrome-launcher": "^3.1.0",
    "karma-firefox-launcher": "^2.1.0",
    "karma-jasmine": "2.0.1",
    "karma-jasmine-html-reporter": "^1.5.2",
    "karma-requirejs": "1.1.0",
    "karma-safari-launcher": "^1.0.0",
    "karma-sourcemap-loader": "0.3.7",

@flolu
Copy link
Contributor

flolu commented Dec 29, 2020

I am encountering the same issue. In my case it was enough to change the version of karma to

"karma": "~4.4.1"

The error occurs after upgrading karma to v5

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs!

@github-actions github-actions bot added the Can Close? We will close this in 30 days if there is no further activity label Mar 30, 2021
@mattsoulanille
Copy link
Contributor

mattsoulanille commented Apr 12, 2021

I'm still having this issue. Posting this so the bot doesn't close it. Currently working with karma: 5.0.6 but breaks with 6.3.2.

Edit: Can we import File from karma/lib/file.js and make bundleFile an instance of it? I might give this a try.

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

Successfully merging a pull request may close this issue.

7 participants