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

Add jquery as depenendency for tributejs #3018

Closed
wants to merge 1 commit into from

Conversation

juliushaertl
Copy link
Contributor

Adds jquery to the vue library as a dependency, to avoid issues during npm link with other repos, which shouldn't matter in terms of building as those are marked as external anyways.

Required for nextcloud/server#33517

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@raimund-schluessler
Copy link
Contributor

@juliushaertl could you please elaborate why this is necessary / helps? Tributejs has literally no dependencies.

@juliushaertl
Copy link
Contributor Author

@raimund-schluessler You're right, actually the issue is not triggered by tribute.js or nextcloud-vue but the web pack provide plugin that the server uses.

https://github.com/nextcloud/server/blob/master/webpack.common.js#L144

This causes the following tribute.js code to fail then as it tires to resolve it from the linked path:

~/repos/nextcloud/@nextcloud/nextcloud-vue bugfix/noid/popover-focus-trap✦ ➜ rg jQuery node_modules/tributejs/dist/tribute.esm.js
1497:    // Check if it is a jQuery collection
1498:    if (typeof jQuery !== "undefined" && el instanceof jQuery) {
1788:    // Check if it is a jQuery collection
1789:    if (typeof jQuery !== "undefined" && el instanceof jQuery) {

I'll see if there is a way to fix this in the server webpack config.

@juliushaertl
Copy link
Contributor Author

Found a way nextcloud/server@d78b82b

@juliushaertl juliushaertl deleted the bugfix/dep-jquery branch August 12, 2022 18:52
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