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

Running npm run build in 10-dynamic-block breaks the block #204

Closed
salcode opened this issue Mar 28, 2022 · 1 comment
Closed

Running npm run build in 10-dynamic-block breaks the block #204

salcode opened this issue Mar 28, 2022 · 1 comment

Comments

@salcode
Copy link
Contributor

salcode commented Mar 28, 2022

If I navigate into the 10-dynamic-block directory and run npm run build, the block stops working.

image

I can see the build/block.json and build/template.php files are deleted (when I suspect they should be modified).

    deleted:    build/block.json
    modified:   build/index.asset.php
    modified:   build/index.js
    deleted:    build/template.php

image

@salcode
Copy link
Contributor Author

salcode commented Mar 28, 2022

This was user error.

The problem occurred because I failed to run npm install inside the 10-dynamic-block directory before npm run build.

@salcode salcode closed this as completed Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant