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

“request.replace is not a function” error #241

Closed
Vaccano opened this issue Apr 25, 2017 · 1 comment
Closed

“request.replace is not a function” error #241

Vaccano opened this issue Apr 25, 2017 · 1 comment

Comments

@Vaccano
Copy link

Vaccano commented Apr 25, 2017

I'm submitting a bug report

Webpack version:
2.3.2

Webpack Karma version:
2.0.3

Karma version:
1.5.0

Please tell us about your environment:
Windows 7

Browser: Chrome 57

Current behavior:
When running karma start I get the following error:

TypeError: request.replace is not a function

Note: This error does not happen when I run my normal webpack based project.

Expected/desired behavior:

No error would be generated. Here are my config files:

karma.conf.js - webpack.config.js - package.json- yarn.lock

  • What is the expected behavior?

From what I can see, this error is generated by webpack when more than one entry point is used. It seems that karma-webpack creates more than one entry point for the tests. So the "expected behavior is to either only have one entry point, or find a way around this error.

@ordinaryorange
Copy link

@Vaccano I hit this exact same error today. For me it was the inclusion of AureliaPlugin() when I had no entry: specified. See this bug report. Although I notice that you have an entry: defined. Maybe try commenting out the other plugins and the ctor you have defined for AureliaPlugin() see what happends then ?

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

No branches or pull requests

3 participants