Skip to content

Conversation

@Pytal
Copy link
Member

@Pytal Pytal commented Feb 17, 2023

Summary

Bump @nextcloud/dialogs from https://github.com/nextcloud/nextcloud-dialogs/releases/tag/v4.0.0-beta.2 to https://github.com/nextcloud/nextcloud-dialogs/releases/tag/v4.0.1

Related

Checklist

@Pytal Pytal added 3. to review Waiting for reviews dependencies labels Feb 17, 2023
@Pytal Pytal added this to the Nextcloud 26 milestone Feb 17, 2023
@Pytal Pytal self-assigned this Feb 17, 2023
@Pytal
Copy link
Member Author

Pytal commented Feb 17, 2023

🤔 This bump alone results in many OC is not defined and process is not defined errors and neither npm i process nor setting resolve.alias.process = 'process/browser' resolves the errors

There are no errors coming from packages so this is probably a result of the core script loading or load order logic, would a dev familiar with the script load logic https://github.com/nextcloud/server/blame/d33fbbed1d20496387decde205f7cac9913b3421/lib/public/Util.php#L173-L217 be able to decipher these errors @mejo-?

@Pytal Pytal requested a review from mejo- February 17, 2023 03:10
@Pytal Pytal added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Feb 17, 2023
@Pytal Pytal force-pushed the deps/nextcloud/dialogs-4.0.1 branch from 56bd646 to 4082d90 Compare February 22, 2023 03:27
@Pytal
Copy link
Member Author

Pytal commented Feb 22, 2023

Checked the Network tab in devtools and all scripts are loaded in the exact same order as working master

Went through the package changes in nextcloud-libraries/nextcloud-dialogs@v4.0.0-beta.2...v4.0.1 and cannot find a culprit

So currently out of ideas, does anything stand out to you @artonge?

@artonge
Copy link
Contributor

artonge commented Feb 22, 2023

I would look into the first error process is not defined from:

OC/util.js --> @nextcloud/files --> path --> process.platform === 'win32'

This is preventing OC from being defined.

Not sure why the error is being triggered now, maybe a change in the bundle order moved the initialization, and therefore error, in this code path, making it apparent.

Not familiar enough with modules, but we definitely need to use a browser compatible path module. The currently used one is for Node. From path-browserify, it seems like bundlers like webpack automatically use it when importing path. Perhaps we need to configure rollup in @nextcloud/files to have the same behaviour.

@Pytal
Copy link
Member Author

Pytal commented Feb 23, 2023

Superseded by nextcloud-libraries/nextcloud-vue#3772 and #36813

@Pytal Pytal closed this Feb 23, 2023
@nickvergessen nickvergessen deleted the deps/nextcloud/dialogs-4.0.1 branch February 23, 2023 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants