dotennin / baidu-pan-downloader

A download manager for Baidu Yun using Tampermonkey
MIT License
202 stars 55 forks source link

`npm run build` reports a TypeError #14

Closed NeapolitanIcecream closed 2 years ago

NeapolitanIcecream commented 3 years ago

This's part of err-report. I'm not familiar with node. Please let me know if anything else is needed.

config-overrides.js:86
    config.entry = config.entry.filter((x) => !x.toLowerCase().includes('hotdev'))
                                ^

TypeError: config.entry.filter is not a function

Result of npm install is below.

npm WARN baidu-pan-downloader@3.3.1 No repository field.

audited 2349 packages in 8.886s

127 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
dotennin commented 3 years ago

Not reproduced on my local, what's the version of NPM in your env ? guess that the corresponding library is not installed correctly 🤔 . trying to comment out disableHotModuleReloading in config-overrides.js:130 temporary ?

amaharana commented 2 years ago

I have the exact same issue while using create-react-app.

Node version: 17.3.0 package.json fragment:

    "dependencies": {
        "node-sass": "^6.0.1",
        "react": "^17.0.2",
        "react-app-rewired": "^2.1.8",
        "react-dom": "^17.0.2",
        "react-redux": "^7.2.6",
        "react-scripts": "5.0.0",
        "redux": "^4.1.2",
        "typescript": "^4.5.4"
    },
    "devDependencies": {
        "@types/node": "^14.18.1",
        "@types/react": "^17.0.37",
        "@types/react-dom": "^17.0.11",
        "@types/react-redux": "^7.1.20",
        "@types/redux": "^3.6.0",
        "emotion": "^11.0.0",
        "redux-devtools-extension": "^2.13.9"
    },
dotennin commented 2 years ago

close this issue due to unnable to reproduced.