Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Webpack 4 compatible pdfjs-dist. #4949

Closed
wants to merge 3 commits into from
Closed

Webpack 4 compatible pdfjs-dist. #4949

wants to merge 3 commits into from

Conversation

silverskyvicto
Copy link

Summary

mattermost-webapp uses webpack 4, but pdfjs-dist 2.0.489 assumes webpack 2 or 3.

If it is the latest one, it supports webpack 4.

How about upgrading pdfjs-dist?

@hanzei hanzei added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Feb 26, 2020
@saturninoabril saturninoabril added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Feb 26, 2020
Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

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

@silverskyvicto Could you please check if this works for you? I'm getting error both on test server - link above and local dev.

@hmhealey hmhealey requested a review from grundleborg February 28, 2020 21:27
@hmhealey
Copy link
Member

Adding @grundleborg to this since he's been handling dependency updates lately.

@hmhealey
Copy link
Member

hmhealey commented Feb 28, 2020

The error that I'm seeing is that something is trying to run an eval statement which is blocked by CSP. I suppose that's why the stayed at the previous version of the library? According to mozilla/pdf.js#10229, it's caused by one of their dependencies (either Babel or facebook/regenerator), but as far as I know, we have newer versions of both of those dependencies.

@mattermod
Copy link
Contributor

This issue has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

/cc @jasonblais @hanzei

@cpanato
Copy link
Contributor

cpanato commented Mar 25, 2020

removing the test server due stale, if need again please add the label back

@cpanato cpanato removed the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Mar 25, 2020
@mattermod
Copy link
Contributor

Test server destroyed

@hanzei hanzei closed this Mar 25, 2020
@mattermod
Copy link
Contributor

We dont have permissions to update this PR, please contact the submitter to apply the update.

@hanzei hanzei reopened this Mar 25, 2020
@hanzei
Copy link
Contributor

hanzei commented Mar 25, 2020

/update-branch

@hmhealey
Copy link
Member

Hi @silverskyvicto. Have you had a chance to look into the stuff we talked about above? Is there anything we could help with?

@silverskyvicto
Copy link
Author

silverskyvicto commented Apr 1, 2020

Hi @hmhealey

Sorry for the late reply.

I am also currently checking.
The query will close once, as it will take some time.

@hmhealey
Copy link
Member

hmhealey commented Apr 3, 2020

No worries. Let us know what you figure out!

@hanzei hanzei removed 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester Lifecycle/1:stale labels Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants