Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotlyjs 2.8.1 #1869

Merged
merged 9 commits into from
Dec 18, 2021
Merged

plotlyjs 2.8.1 #1869

merged 9 commits into from
Dec 18, 2021

Conversation

alexcjohnson
Copy link
Collaborator

@alexcjohnson alexcjohnson commented Dec 17, 2021

And other dep updates across the board while I'm here.

FYI I encountered a new (to me) flavor of dependency hell here. Both eslint and webpack depend on the package eslint-scope

├─┬ eslint@8.4.1
│ └── eslint-scope@7.1.0
└─┬ webpack@5.65.0
  └── eslint-scope@5.1.1

One of these will be added to the root of node_modules, but because they're different versions we don't know which one. As long as everyone is referencing it directly it's all fine, the correct one will be chosen. However, another package, babel-eslint, does some funny resolving that seems to always pick the root version:

> cat node_modules/babel-eslint/lib/require-from-eslint.js
"use strict";

const resolve = require("resolve");
const eslintBase = require.resolve("eslint");

module.exports = function requireFromESLint(id) {
  const path = resolve.sync(id, { basedir: eslintBase });
  return require(path);
};

I first upgraded deps in dash-table, including eslint 7.30.0 -> 8.4.1, and everything was fine. I then did the same in dash-core-components and the build failed. That's because in dash-table we ended up with eslint-scope@5.1.1 in the root of node_modules, which is what webpack needed, but in dash-core-components we ended up with eslint-scope@7.1.0 in the root.

The only solution I could find was to downgrade eslint back to ^7.30.0 - which to be safe I did in both places.

  • I have added entry in the CHANGELOG.md

"eslint": "^7.29.0",
"css-loader": "^6.5.1",
"es-check": "^6.1.1",
"eslint": "^8.4.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this eslint v8 is fine?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh thanks - yeah this one is also subject to the same danger. I'll revert it to v7.

@alexcjohnson alexcjohnson merged commit 31dab22 into dev Dec 18, 2021
@alexcjohnson alexcjohnson deleted the deps-update-20211215 branch December 18, 2021 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants