Closed
Description
Hi, today a had faced with such strange issue. A think this probably of a bug.
Environment:
TypeScript Version: 3.1.0
Webpack Version: 4.15.0
Path Version: 0.12.7
Loaders:
AW-Loader Version: 5.2.0
TS-Loader Version: 4.5.0
(both tested with it, the same scenario):
all package above are installed globally and also locally in project
Code of an Error
ERROR in ./src/main.ts
Module build failed (from /Users/react-apps/node_modules/ts-loader/index.js):
TypeError: path.replace is not a function
at Object.normalizeSlashes (/Users/react-apps/node_modules/typescript/lib/typescript.js:14080:21)
at Object.combinePaths (/Users/react-apps/node_modules/typescript/lib/typescript.js:14405:31)
at getWildcardDirectories (/Users/react-apps/node_modules/typescript/lib/typescript.js:24289:48)
at matchFileNames (/Users/react-apps/node_modules/typescript/lib/typescript.js:24168:35)
at getFileNames (/Users/react-apps/node_modules/typescript/lib/typescript.js:23765:26)
at parseJsonConfigFileContentWorker (/Users/react-apps/node_modules/typescript/lib/typescript.js:23712:18)
at Object.parseJsonConfigFileContent (/Users/react-apps/node_modules/typescript/lib/typescript.js:23662:16)
at Object.getConfigParseResult (/Users/react-apps/node_modules/ts-loader/dist/config.js:82:40)
at successfulTypeScriptInstance (/Users/react-apps/node_modules/ts-loader/dist/instances.js:64:40)
at Object.getTypeScriptInstance (/Users/react-apps/node_modules/ts-loader/dist/instances.js:51:12)
at Object.loader (/Users/react-apps/node_modules/ts-loader/dist/index.js:16:41)
@ multi ./src/main.ts webpack-hot-middleware/client?path=http://192.168.0.102:3000/__webpack_hmr
Expected behavior:
Must compile app without any errors
Actual behavior:
Broke on Webpack 4 final compilation stage
Related Issues:
no one with typescript