Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Rename Bootstrap.php to bootstrap.php #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MinKaizen
Copy link

This pull requests renames the Bootstrap.php (capitalized) file to bootstrap.php (lowecase)

Reason: On linux systems, file names are case sensitive, so the install process fails at step 4 with this error message:

Error - Error: No files match the pattern: <path-to-project>/src/bootstrap.php
Error - '4. Operator is replacing plugin data' was a required step, exiting now.

@malijani
Copy link

Just got the same issue:

npx --version
8.5.0
node --version
v16.14.2

Fixed with:

npm install wp-strap

then renaming bootstrap.php to Bootstrap.php in node_modules/wp-strap/strap.js

Copy link

@beebop-fr beebop-fr left a comment

Choose a reason for hiding this comment

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

This is not a good solution.
If you do that you break the autoloader logic when requiring the Bootstrap class and you get this error when activating the plugin : "The Plugin is unable to find the Bootstrap class"

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.

3 participants