syntax-tree / mdast-util-to-hast

utility to transform mdast to hast
https://unifiedjs.com
MIT License
101 stars 42 forks source link

Module not found: Can't resolve 'devlop' #72

Closed shorif2000 closed 11 months ago

shorif2000 commented 11 months ago

Initial checklist

Affected packages and versions

1.4.0

Link to runnable example

No response

Steps to reproduce

I am using node 12 with following packages in react


"dependencies": {
    "@babel/core": "7.9.0",
    "@babel/plugin-proposal-class-properties": "^7.18.6",
    "@coreui/coreui": "^3.2.2",
    "@coreui/icons-react": "^1.0.2",
    "@coreui/react": "^3.2.3",
    "@inovua/reactdatagrid-community": "^5.10.1",
    "@svgr/webpack": "4.3.3",
    "@typescript-eslint/eslint-plugin": "^2.10.0",
    "@typescript-eslint/parser": "^2.10.0",
    "babel-eslint": "10.1.0",
    "babel-jest": "^24.9.0",
    "babel-loader": "8.1.0",
    "babel-plugin-named-asset-import": "^0.3.6",
    "babel-preset-react-app": "^9.1.2",
    "bootstrap": "^4.6.2",
    "camelcase": "^5.3.1",
    "case-sensitive-paths-webpack-plugin": "2.3.0",
    "chart.js": "^4.4.0",
    "css-loader": "3.4.2",
    "csv-writer": "^1.6.0",
    "dotenv": "8.2.0",
    "dotenv-expand": "5.1.0",
    "es6-promise": "^4.2.8",
    "eslint": "^6.6.0",
    "eslint-config-react-app": "^5.2.1",
    "eslint-loader": "3.0.3",
    "eslint-plugin-flowtype": "4.6.0",
    "eslint-plugin-import": "2.20.1",
    "eslint-plugin-jsx-a11y": "6.2.3",
    "eslint-plugin-react": "7.19.0",
    "eslint-plugin-react-hooks": "^1.6.1",
    "file-loader": "4.3.0",
    "formik": "^2.1.5",
    "fs-extra": "^8.1.0",
    "html-webpack-plugin": "4.0.0-beta.11",
    "identity-obj-proxy": "3.0.0",
    "ip-address": "^8.1.0",
    "jest": "24.9.0",
    "jest-environment-jsdom-fourteen": "1.0.1",
    "jest-resolve": "24.9.0",
    "jest-watch-typeahead": "0.4.2",
    "lodash": "^4.17.20",
    "mdast-util-to-markdown": "^1.4.0",
    "mini-css-extract-plugin": "0.9.0",
    "moment": "^2.29.1",
    "node-sass": "^4.14.1",
    "object-assign": "^4.1.1",
    "optimize-css-assets-webpack-plugin": "5.0.3",
    "pnp-webpack-plugin": "1.6.4",
    "postcss-flexbugs-fixes": "4.1.0",
    "postcss-loader": "3.0.0",
    "postcss-normalize": "8.0.1",
    "postcss-preset-env": "6.7.0",
    "postcss-safe-parser": "4.0.1",
    "react": "^16.13.1",
    "react-app-polyfill": "^1.0.6",
    "react-bootstrap": "^1.6.7",
    "react-chartjs-2": "^5.2.0",
    "react-dev-utils": "^10.2.1",
    "react-dom": "^16.13.1",
    "react-markdown": "^9.0.0",
    "react-new-window": "^1.0.1",
    "react-redux": "^7.2.1",
    "react-router-dom": "^5.2.0",
    "reactstrap": "^8.5.1",
    "redux": "^4.0.5",
    "resolve": "1.15.0",
    "resolve-url-loader": "3.1.1",
    "sass": "^1.64.0",
    "sass-loader": "8.0.2",
    "semver": "6.3.0",
    "style-loader": "0.23.1",
    "styled-components": "^5.1.0",
    "terser-webpack-plugin": "2.3.8",
    "ts-pnp": "1.1.6",
    "url-loader": "2.3.0",
    "webpack": "4.42.0",
    "webpack-dev-server": "3.11.0",
    "webpack-manifest-plugin": "2.2.0",
    "workbox-webpack-plugin": "4.3.1",
    "yup": "^0.29.3"
  },
"devDependencies": {
    "@faker-js/faker": "^8.1.0",
    "@testing-library/jest-dom": "^5.15.0",
    "@testing-library/react": "^12.1.2",
    "@testing-library/user-event": "^13.1.9",
    "cross-env": "^7.0.3",
    "jest-junit": "^16.0.0",
    "devlop": "^1.1.0"
  },

The latest version of this requires node 16 which I am not using. I ma trying to use react-markdown which seems to require this package

Expected behavior

it should compile fine

Actual behavior

./node_modules/mdast-util-to-hast/lib/index.js Module not found: Can't resolve 'devlop' in '/home/user/my-app/node_modules/mdast-util-to-hast/lib'

Affected runtime and version

node 12

Affected package manager and version

6.14.16

Affected OS and version

Red Hat Enterprise Linux Server release 7.9 (Maipo)

Build and bundle tools

No response

ChristianMurphy commented 11 months ago

Welcome @shorif2000! 👋 Sorry you ran into a spot of trouble.

react-markdown version 9 and it's dependencies require a minimum of node 16, node 12 is not supported. I'd highly recommend upgrading your node version to 16 or higher, earlier node version are no longer supported nor receiving security updates. If you do choose to stick with node 12, hold on react-markdown version 8 until you can upgrade both.

github-actions[bot] commented 11 months ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.