You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.
I am using a TypeScript-powered Webpack configuration file and in order to use path aliases defined in my tsconfig.json I rely on using tsconfig-paths. Unfortunately TypeScript configuration files for Webpack happen to behave rather erratic and the described method in the documentation does not work at all. Therefore I had to bootstrap my configuration file and add require("tsconfig-paths").register(); as the very first line in my configuration file which fixes issues regarding module resolution.
Unfortunately typings-for-css-modules-loader runs into issues with that bootstrap command enabled and yields the following error:
ERROR in ./Source/Styles.scss (./node_modules/typings-for-css-modules-loader/lib??ref--5-1!./node_modules/sass-loader/lib/loader.js!./Source/Styles.scss)
Module build failed (from ./node_modules/typings-for-css-modules-loader/lib/index.js):
TypeError: query.substr is not a function
at Object.parseQuery (D:\Source\electron-typescript-boilerplate\node_modules\loader-utils\lib\parseQuery.js:12:11)
at Object.module.exports (D:\Source\electron-typescript-boilerplate\node_modules\typings-for-css-modules-loader\lib\index.js:54:37)
@ ./Source/Styles.scss 2:14-152 21:1-42:3 22:19-157
@ ./Source/App.tsx
@ ./Source/Index.tsx
@ multi (webpack)-dev-server/client?http://localhost:3000 (webpack)/hot/dev-server.js webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server ./Source/Index.tsx
I am using a TypeScript-powered Webpack configuration file and in order to use path aliases defined in my
tsconfig.json
I rely on usingtsconfig-paths
. Unfortunately TypeScript configuration files for Webpack happen to behave rather erratic and the described method in the documentation does not work at all. Therefore I had to bootstrap my configuration file and addrequire("tsconfig-paths").register();
as the very first line in my configuration file which fixes issues regarding module resolution.Unfortunately
typings-for-css-modules-loader
runs into issues with that bootstrap command enabled and yields the following error:The loader configuration looks as follows:
Is there any way to help you figure out where this error comes from?
The text was updated successfully, but these errors were encountered: