Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

[3.0.0-beta] query.substr is not a function #59

Closed
dpogue opened this issue Jun 12, 2017 · 4 comments
Closed

[3.0.0-beta] query.substr is not a function #59

dpogue opened this issue Jun 12, 2017 · 4 comments

Comments

@dpogue
Copy link

dpogue commented Jun 12, 2017

Tried installing 3.0.0-beta to see if it would get rid of the parseQuery warning, and instead I'm getting this error for every file:

ERROR in ./src/helpers/promise.ts
Module build failed: TypeError: query.substr is not a function
    at Object.parseQuery (/Users/dpogue/Coding/project/node_modules/loader-utils/lib/parseQuery.js:12:11)
    at Object.exports.default (/Users/dpogue/Coding/project/node_modules/istanbul-instrumenter-loader/dist/index.js:17:43)
 @ ./src/helpers/promise.spec.ts 3:0-49
 @ ./src .spec.ts$
 @ ./webpack.tests.js
@bogdan-craciun
Copy link

Hi. I'm still getting this error, and I'm using Webpack 3.8.1, and all other packages are latest version. Is there anything I can try? Thanks.

@deguif
Copy link

deguif commented Nov 20, 2017

Same here, I used Webpack 3.8.1, and I got this error

Module build failed: TypeError: this.query.substr is not a function
    at Object.module.exports.pitch (/var/www/html/node_modules/expose-loader/index.js:43:34);

Edit: Solved. The problem was with expose-loader (not istanbul-instrumenter-loader) receiving an object instead of a string.

@joshwiens
Copy link
Member

I use istanbul-instrumenter-loader in a few projects without issue.

For either of you still experiencing issues, we are going to need something minimal that reproduces the issue.

@alexander-akait
Copy link
Member

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!

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

No branches or pull requests

5 participants