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

update core package dependency material-table to 1.69.0 #2263

Closed
wants to merge 4 commits into from

Conversation

alileza
Copy link

@alileza alileza commented Sep 3, 2020

Hey, I just made a Pull Request!

This update is needed to fix an issue if jspdf fileSaver issue parallax/jsPDF#2490. When the dependency configured to fetch directly from github, it caused a problem when npm install runs in infrastructure that unable to access github.com.

This changes as the changelog of material-table shown did an update to jspdf 2.0.0 which don't rely on file-saver dependency anymore

jspdf changelog update: mbrn/material-table@v1.68.0...v1.69.0#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R85

✔️ Checklist

  • All tests are passing yarn test
  • Screenshots attached (for UI changes)
  • Relevant documentation updated
  • Prettier run on changed files
  • Tests added for new functionality
  • Regression tests added for bug fixes

@freben
Copy link
Member

freben commented Sep 3, 2020

Hi! Any particular reason this is a draft? Would be happy to merge

@freben
Copy link
Member

freben commented Sep 3, 2020

also done in #2248 but that one forgot to check in yarn.lock

@freben
Copy link
Member

freben commented Sep 3, 2020

Ah shoot, that build error again - you may want to upgrade the yarn.lock version to 2.1.0 i think parallax/jsPDF#2846 (comment)

@Rugvip
Copy link
Member

Rugvip commented Sep 3, 2020

Fixed in parallax/jsPDF@ab21994#diff-b9cfc7f2cdf78a7f4b91a753d10865a2, so hopefully working in the next release

@alileza
Copy link
Author

alileza commented Sep 3, 2020

Hi @freben yeah I'm trying to figure out the issue with those e2e doesn't seem to work, I'd update the PR once jspdf fixes went through.

But we need to wait for material-table releases as well I guess

@freben
Copy link
Member

freben commented Sep 3, 2020

We could probably bump the resolved version in yarn.lock manually to 2.1.0, right? https://github.com/MrRio/jsPDF/releases/tag/v2%2C1%2C0

@freben
Copy link
Member

freben commented Sep 3, 2020

Ah sorry, it's a fixed version dep :/

@alileza
Copy link
Author

alileza commented Sep 3, 2020

still the same error with version 2.1.0, I tested this locally, seems like [email protected] is a breaking change for backstage 😞


Error: Failed to compile.
/tmp/backstage-e2e-c2nTQC/test-app/node_modules/jspdf/dist/jspdf.umd.min.js
Critical dependency: the request of a dependency is an expression

/tmp/backstage-e2e-c2nTQC/test-app/node_modules/jspdf/dist/jspdf.umd.min.js
Critical dependency: the request of a dependency is an expression

@bresmith-wayfair
Copy link

👋 @alileza and I work together and are both trying to solve this issue so whichever PR works better works for us 😄

@bresmith-wayfair
Copy link

for more context, I tried the route suggested above and manually bumped the resolved versions in our own yarn.lock for our instance of backstage generated via the cli and we are able to build successfully, avoiding the FileSaver.js issue on our github deprived CI system, but apparently there is a breaking change and the UI does not render

@bresmith-wayfair bresmith-wayfair mentioned this pull request Sep 3, 2020
6 tasks
@freben
Copy link
Member

freben commented Sep 3, 2020

OK. When they cut a new release of material-table this should be easier to fix fully. I guess we wait a bit... They seem to have a somewhat frequent release cadence and they have bumped to the fixed version in master.

Or are you blocked to such a degree that we should even do something more drastic like downgrading far enough that the jspdf dependency is gone?

@bresmith-wayfair
Copy link

we are unblocking ourselves for now, but it would be great to get this fixed asap. I can imagine we are not the only ones experiencing this pain.

@marcuseide
Copy link
Collaborator

This is done in #2782

@marcuseide marcuseide closed this Oct 8, 2020
eturino added a commit to eturino/material-table that referenced this pull request Jan 13, 2021
this is the same as mbrn#2442 which was closed.

## Related Issue

Relate the Github issue with this PR using backstage/backstage#2263

## Description

Simple words to describe the overall goals of the pull request's commits.

## Additional Notes

jspdf fileSaver issue parallax/jsPDF#2490. When the dependency configured to fetch directly from github, this caused an issue while running npm install in isolated environment, and the issue already been patched in jspdf, we just need to do an update here
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.

5 participants