Skip to content

Fix compatibility issues with Node.js 18 and Frappe 16 #320

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

metalmon
Copy link

This PR addresses several compatibility issues with the Drive application:
Changes
Updated Pillow dependency: Modified pyproject.toml to use Pillow 11.0.0+ (from 10.0.0) to align with Frappe 16.0.0 requirements.
Fixed frontend build error: Added indexHtmlPath to the Vite configuration in frontend/vite.config.js to resolve the build error with frappe-ui:
Apply to vite.config....
Added --ignore-engines flag for yarn installation to bypass Node.js version requirements, allowing the app to work with Node.js 18.x without requiring an upgrade to Node.js 20.
Why these changes are necessary
The application was relying on an older version of Pillow that conflicts with Frappe 16's requirements
The Vite configuration was missing a required parameter for the frappe-ui build plugin
The app had dependencies requiring Node.js 20+ but can function properly with Node.js 18 with appropriate flags
These changes ensure the application can be installed smoothly in environments using Frappe 16 with Node.js 18, without requiring manual adjustments by users.

- Removed package-lock.json file.
- Updated postinstall script in package.json to ignore engines.
- Upgraded Pillow dependency in pyproject.toml to version 11.0.0.
- Cleaned up yarn.lock by removing unused entries.
- Downgraded @tato30/vue-pdf dependency in frontend/package.json to version 1.9.0.
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.

1 participant