I updated to webpack (5.75.0)
before 4.33.0, webpack cli (5.0.1)
before 3.3.5 and typescript (4.9.5)
from 4.1.2 and ts-loader(9.4.2)
from 6.0.2,
everything used to work fine before update, but now it returns to me this error
<e> [webpack-dev-middleware] HookWebpackError: Debug Failure. False expression: Should only get Alias here.
<e> at makeWebpackError (C:\Sources\company\company.UI.Web\company-web view\node_modules\webpack\lib\HookWebpackError.js:48:9)company
<e> at C:\Sources\company\company.UI.Web\company-web-
view\node_modules\webpack\lib\Compilation.js:3060:12
<e> at eval (eval at create (C:\Sources\company\company.UI.Web\company-web-view\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:57:1)
<e> at fn (C:\Sources\company\company.UI.Web\company-web-view\node_modules\webpack\lib\Compilation.js:480:17)
<e> at _next1 (eval at create (C:\Sources\company\company.UI.Web\company-web-view\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:54:1)
<e> at eval (eval at create (C:\Sources\company\company.UI.Web\company-web-view\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:72:1)
<e> at C:\Sources\company\company.UI.Web\company-web-view\node_modules\webpack\lib\Compilation.js:521:10
<e> at C:\Sources\company\company.UI.Web\company-web-view\node_modules\html-webpack-plugin\lib\cached-child-compiler.js:267:53
<e> at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
with inner error
<e> -- inner error --
<e> Error: Debug Failure. False expression: Should only get Alias here.
<e> at resolveAlias (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:51918:22)
<e> at resolveEntityName (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:52216:76)
<e> at resolveEntityName (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:52156:33)
<e> at resolveTypeReferenceName (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:61691:26)
<e> at getTypeFromTypeReference (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:61891:30)
<e> at getTypeFromTypeNodeWorker (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:64535:28)
<e> at getTypeFromTypeNode (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:64495:49)
<e> at tryGetTypeFromEffectiveTypeNode (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:57727:24)
<e> at getTypeForVariableLikeDeclaration (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:57160:32)
<e> at getWidenedTypeForVariableLikeDeclaration (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:57687:56)
<e> caused by plugins in Compilation.hooks.processAssets
<e> Error: Debug Failure. False expression: Should only get Alias here.
<e> at resolveAlias (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:51918:22)
<e> at resolveEntityName (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:52216:76)
<e> at resolveEntityName (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:52156:33)
<e> at resolveTypeReferenceName (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:61691:26)
<e> at getTypeFromTypeReference (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:61891:30)
<e> at getTypeFromTypeNodeWorker (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:64535:28)
<e> at getTypeFromTypeNode (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:64495:49)
<e> at tryGetTypeFromEffectiveTypeNode (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:57727:24)
<e> at getTypeForVariableLikeDeclaration (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:57160:32)
<e> at getWidenedTypeForVariableLikeDeclaration (C:\Sources\company\company.UI.Web\company-web-view\node_modules\typescript\lib\typescript.js:57687:56)
It works if you downgrade ts-loader or typescript, but i can't. Looked for info in doc, forum, but no one faced this problem already, could be a bug of TS or Webpack
package.json
below
"dependencies": {
"@grapecity/spread-excelio": "15.2.5",
"@grapecity/spread-sheets": "15.2.5",
"@grapecity/spread-sheets-barcode": "15.2.5",
"@grapecity/spread-sheets-charts": "15.2.5",
"@grapecity/spread-sheets-designer": "15.2.5",
"@grapecity/spread-sheets-designer-react": "15.2.5",
"@grapecity/spread-sheets-designer-resources-en": "15.2.5",
"@grapecity/spread-sheets-languagepackages": "15.2.5",
"@grapecity/spread-sheets-pdf": "15.2.5",
"@grapecity/spread-sheets-pivot-addon": "15.2.5",
"@grapecity/spread-sheets-print": "15.2.5",
"@grapecity/spread-sheets-react": "15.2.5",
"@grapecity/spread-sheets-shapes": "15.2.5",
"@grapecity/spread-sheets-tablesheet": "15.2.5",
"@microsoft/signalr": "5.0.0",
"@popperjs/core": "2.11.6",
"@types/lodash.clonedeep": "4.5.7",
"@types/mime-types": "2.1.1",
"@types/react-collapse": "5.0.1",
"@types/react-grid-layout": "1.3.2",
"@types/react-splitter-layout": "3.0.2",
"@types/uuid": "9.0.1",
"add": "2.0.6",
"ag-grid-community": "28.1.1",
"ag-grid-enterprise": "28.1.1",
"ag-grid-react": "28.1.1",
"alasql": "3.1.0",
"base64-js": "1.5.1",
"castit": "1.3.0",
"copy-to-clipboard": "3.3.3",
"detect-browser": "5.3.0",
"draft-js": "0.11.7",
"draftjs-to-html": "0.9.1",
"fast-xml-parser": "4.1.3",
"file-saver": "2.0.5",
"html-to-react": "1.5.0",
"js-yaml": "4.1.0",
"json-schema-ref-parser": "9.0.9",
"lint": "1.1.2",
"lodash.clonedeep": "4.5.0",
"lodash.debounce": "4.0.8",
"lodash.isempty": "4.4.0",
"lodash.isequal": "4.5.0",
"lodash.merge": "4.6.2",
"material-ui": "0.20.2",
"memoize-one": "6.0.0",
"mime-types": "2.1.35",
"moment": "2.29.4",
"mutationobserver-shim": "0.3.7",
"number-format.js": "2.0.9",
"oidc-client": "1.11.5",
"polished": "4.2.2",
"preload-webpack-plugin": "3.0.0-beta.4",
"rc-switch": "4.0.0",
"rc-trigger": "5.3.4",
"react": "18.2.0",
"react-collapse": "5.1.1",
"react-color": "2.19.3",
"react-datepicker": "4.10.0",
"react-dnd": "16.0.1",
"react-dnd-html5-backend": "16.0.1",
"react-dom": "18.2.0",
"react-draft-wysiwyg": "1.15.0",
"react-grid-layout": "1.3.4",
"react-grid-layout-builder": "3.0.0",
"react-hotkeys": "2.0.0",
"react-intersection-observer": "9.4.3",
"react-loading": "2.0.3",
"react-modal": "3.16.1",
"react-notification-system": "0.4.0",
"react-popper": "2.3.0",
"react-redux": "8.0.5",
"react-rnd": "10.4.1",
"react-scripts": "5.0.1",
"react-select": "5.7.0",
"react-simple-tree-menu": "1.1.18",
"react-sortable-hoc": "2.0.0",
"react-splitter-layout": "4.0.0",
"react-tabs": "6.0.0",
"react-window": "1.8.8",
"reboron": "0.4.8",
"recompose": "0.30.0",
"redux": "4.2.1",
"redux-saga": "1.2.2",
"reselect": "4.1.7",
"sql-parser": "0.5.0",
"styled-components": "5.3.8",
"text-encoding": "0.7.0",
"ts-node": "10.9.1",
"ts-node-dev": "2.0.0",
"uuid": "9.0.0",
"webpack": "5.75.0",
"webpack-dev-server": "4.11.1",
"whatwg-fetch": "3.6.2",
"xmldom": "0.6.0",
"yarn": "1.22.19"
},
"devDependencies": {
"@types/enzyme": "3.10.12",
"@types/enzyme-adapter-react-16": "1.0.6",
"@types/file-saver": "2.0.5",
"@types/html-to-draftjs": "1.4.0",
"@types/jest": "29.4.0",
"@types/lodash.debounce": "4.0.7",
"@types/lodash.isempty": "4.4.7",
"@types/lodash.isequal": "4.5.6",
"@types/lodash.merge": "4.6.7",
"@types/react": "18.0.28",
"@types/react-color": "3.0.6",
"@types/react-datepicker": "4.10.0",
"@types/react-dom": "18.0.11",
"@types/react-modal": "3.13.1",
"@types/react-notification-system": "0.2.42",
"@types/react-redux": "7.1.25",
"@types/react-select": "5.0.1",
"@types/react-tabs": "5.0.5",
"@types/react-window": "1.8.5",
"@types/recompose": "0.30.10",
"@types/styled-components": "5.1.26",
"@types/xmldom": "0.1.31",
"bundle-stats-webpack-plugin": "4.2.4",
"clean-webpack-plugin": "4.0.0",
"css-loader": "6.7.3",
"deep-freeze": "0.0.1",
"dotenv": "16.0.3",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.7",
"eslint": "8.35.0",
"eslint-plugin-react": "7.32.2",
"exports-loader": "4.0.0",
"file-loader": "6.2.0",
"glob": "9.2.1",
"html-loader": "4.2.0",
"html-webpack-plugin": "5.5.0",
"identity-obj-proxy": "3.0.0",
"jest": "29.4.3",
"json-loader": "0.5.7",
"json-schema-to-typescript": "12.0.0",
"moment-locales-webpack-plugin": "1.2.0",
"react-hot-loader": "4.13.1",
"react-test-render": "1.1.2",
"script-loader": "0.7.2",
"source-map-loader": "4.0.1",
"style-loader": "3.3.1",
"terser-webpack-plugin": "5.3.6",
"ts-jest": "29.0.5",
"ts-loader": "9.4.2",
"typescript": "4.9.5",
"uri-parser": "1.0.1",
"webpack-bundle-analyzer": "4.8.0",
"webpack-cli": "5.0.1",
"webpack-merge": "5.8.0",
"webpack-shell-plugin": "0.5.0",
"yaml-loader": "0.8.0",
"yamljs": "0.3.0"
}