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

npm i Can't find assets/src/plugin-block.js #229

Closed
kauaicreative opened this issue Jan 19, 2023 · 3 comments
Closed

npm i Can't find assets/src/plugin-block.js #229

kauaicreative opened this issue Jan 19, 2023 · 3 comments

Comments

@kauaicreative
Copy link

kauaicreative commented Jan 19, 2023

Here is a bug and a fix.

  1. run generator after removing the "snippet": { "backend": ["block"] ...
  2. npm i will throw an error trying to compile the missing assets/src/plugin-block.js.

commenting out 'plugin-block' in webpack.config.js fixes the issue.

[
	'plugin-admin',
	// 'plugin-block',
	'plugin-public',
	'plugin-settings'
]
@Mte90
Copy link
Member

Mte90 commented Jan 19, 2023

Did your plugin had the blocks? because probably is an issue in the generator and not in the boilerplate: https://github.com/WPBP/generator

@Mte90
Copy link
Member

Mte90 commented Jan 19, 2023

Checked the code, it is a generator bug and not in the boilerplate. We just remove the php files but not that line in the webpack.config.js.
I am working on a fix.

@Mte90
Copy link
Member

Mte90 commented Jan 19, 2023

Bug fixed in the latest release of the generator https://github.com/WPBP/generator/releases/tag/1.3.6
For the future if there are issues on the generator can you open a ticket in the right repository? just to avoid confusion for me

@Mte90 Mte90 closed this as completed Jan 19, 2023
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

No branches or pull requests

2 participants