soundcloud-redux icon indicating copy to clipboard operation
soundcloud-redux copied to clipboard

Project fails to compile on Node 14

Open seantcanavan opened this issue 4 years ago • 0 comments

I've upgraded all the dependencies to latest and there's a couple build errors as a result. I was wondering if you'd ever considered upgrading the project across the board to the latest dependencies?

Failed to compile.

./node_modules/rxjs/Observable.js
Module not found: Can't resolve 'rxjs-compat/Observable' in '/home/userhome/workspace/soundcloud-redux/node_modules/rxjs'

Failed to compile.

./src/core/history.js
Module not found: Can't resolve 'history/createBrowserHistory' in '/home/userhome/workspace/soundcloud-redux/src/core'

Here's my package.json:

{
  "name": "soundcloud-redux",
  "version": "1.0.0",
  "description": "SoundCloud API client with React, Redux, and Redux Saga",
  "homepage": "https://soundcloud-redux.herokuapp.com",
  "repository": {
    "type": "git",
    "url": "https://github.com/r-park/soundcloud-redux.git"
  },
  "author": {
    "name": "Richard Park",
    "email": "[email protected]"
  },
  "license": "MIT",
  "private": true,
  "engines": {
    "node": ">=8.2"
  },
  "scripts": {
    "build": "run-s build:css build:js",
    "build:css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/",
    "build:js": "cross-env NODE_PATH=. react-scripts build",
    "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
    "eject": "react-scripts eject",
    "heroku-postbuild": "npm run build",
    "server": "cross-env NODE_ENV=development nodemon -w 'server/**/*.*' server/main.js",
    "start": "run-p start:css start:js",
    "start:css": "npm run build:css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive",
    "start:js": "cross-env NODE_PATH=. react-scripts start",
    "test": "cross-env NODE_PATH=. react-scripts test --env=jsdom",
    "test:ci": "cross-env CI=true NODE_PATH=. react-scripts test --env=jsdom",
    "test:server": "ava server/spec.js --verbose",
    "version": "npm run changelog && git add CHANGELOG.md"
  },
  "dependencies": {
    "classnames": "2.2.6",
    "compression": "1.7.4",
    "express": "4.17.1",
    "helmet": "4.4.0",
    "history": "5.0.0",
    "immutable": "3.8.2",
    "prop-types": "15.7.2",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-redux": "7.2.2",
    "react-router": "5.2.0",
    "react-router-dom": "5.2.0",
    "react-scripts": "4.0.1",
    "redux": "4.0.5",
    "redux-saga": "1.1.3",
    "reselect": "4.0.0",
    "rxjs": "6.6.3",
    "serve-favicon": "2.5.0",
    "winston": "3.3.3"
  },
  "devDependencies": {
    "ava": "3.15.0",
    "conventional-changelog-cli": "2.1.1",
    "cross-env": "7.0.3",
    "enzyme": "3.11.0",
    "minx": "0.4.14",
    "morgan": "1.10.0",
    "node-sass-chokidar": "1.5.0",
    "nodemon": "2.0.7",
    "npm-run-all": "4.1.5",
    "react-test-renderer": "17.0.1",
    "sinon": "9.2.3",
    "superagent": "6.1.0",
    "supertest": "6.1.1"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

seantcanavan avatar Jan 18 '21 15:01 seantcanavan