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

Error npm run rename if ThemeName is written in CamelCaseNotation #73

Open
MrAndreius opened this issue Feb 25, 2019 · 5 comments
Open
Labels
Bug Something isn't working. Component: Build

Comments

@MrAndreius
Copy link

Fatal error: Uncaught Error: Class 'ThemeName\Providers\AppServiceProvider' not found in .......\wp-content\themes\themename\vendor\justintadlock\hybrid-core\src\Core\Application.php on line 187

To make it work, need to manually correct the class name in the files. Themename = > ThemeName
vendor\composer\autoload_static.php
vendor\composer\autoload_psr4.php

@justintadlock justintadlock added Bug Something isn't working. Component: Build labels Feb 25, 2019
@justintadlock
Copy link
Member

Can you cross-post this in the Theme Claim issue tracker, which is the package we're using? https://github.com/m-e-h/theme-claim

@lkraav
Copy link
Collaborator

lkraav commented Feb 25, 2019

Fairly certain duplicate of m-e-h/theme-claim#6

@justintadlock
Copy link
Member

Yep, that would be. I remember coming across that now with an all-caps theme name.

@MrAndreius
Copy link
Author

found another place where the theme name is written incorrectly
composer.json
"autoload" : { "psr-4" : { "Themename\\" : "app/" // need ThemeName } },
this may then again cause a loading error

m-e-h added a commit to m-e-h/theme-claim that referenced this issue Feb 26, 2019
@m-e-h
Copy link
Collaborator

m-e-h commented Feb 26, 2019

This should be good with m-e-h/theme-claim@5dc43e3. 🎉
Keep me posted if it's not.

Also, probably gonna need to update the package.json dep to 0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working. Component: Build
Projects
None yet
Development

No branches or pull requests

4 participants