Closed AlbertoDente3 closed 5 months ago
After updating to 10.1.0 from 9.0.9, while using $RefParser.dereference it throws: TypeError: (0 , path_1.join) is not a function error
10.1.0
9.0.9
$RefParser.dereference
TypeError: (0 , path_1.join) is not a function
Node 18.14.0, webpack 5, with webpack polyfill plugin
Node 18.14.0
webpack 5
webpack polyfill plugin
"dependencies": { "@apidevtools/json-schema-ref-parser": "10.1.0", "@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": "29.1.0", "ag-grid-enterprise": "29.1.0", "ag-grid-react": "29.1.0", "alasql": "3.1.0", "base64-js": "1.5.1", "castit": "1.3.0", "copy-to-clipboard": "3.3.3", "csstype": "3.1.1", "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", "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" },
A lot of these resolution errors should be fixed - you will need to polyfill path if using in browser
After updating to
10.1.0
from9.0.9
, while using$RefParser.dereference
it throws:TypeError: (0 , path_1.join) is not a function
errorNode 18.14.0
,webpack 5
, withwebpack polyfill plugin