Skip to content

fix(create-blocks-app): include Amplify dev server template#242

Open
ikenyal wants to merge 1 commit into
aws-devtools-labs:mainfrom
ikenyal:fix/amplify-dev-server-template
Open

fix(create-blocks-app): include Amplify dev server template#242
ikenyal wants to merge 1 commit into
aws-devtools-labs:mainfrom
ikenyal:fix/amplify-dev-server-template

Conversation

@ikenyal

@ikenyal ikenyal commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Problem

Issue #, if available: Fixes #241

When AWS Blocks is added to an Amplify Gen 2 project, the CLI adds blocks:dev with tsx watch aws-blocks/scripts/server.ts. The Amplify overlay did not include that file, so the documented command immediately failed with ERR_MODULE_NOT_FOUND.

This is present in the published @aws-blocks/create-blocks-app package as well as in the repository source.

Changes

  • Add the missing Amplify aws-blocks/scripts/server.ts template, using the existing backend-template local server pattern on port 3001.
  • Extend the Amplify auto-detection test to verify that the generated blocks:dev script has a matching server file.
  • Add a patch changeset for @aws-blocks/create-blocks-app.

Validation

  • Added a regression assertion that failed before the template was added and passes after the fix.
  • npm run build
  • npm run lint:deps
  • npm test
  • npm run test:e2e:local (comprehensive: 372 passed, 0 failed, 1 skipped; vendorize: 8 passed, 0 failed)
  • npm pack --dry-run --workspace @aws-blocks/create-blocks-app confirms the new template is included.
  • npx changeset status

Checklist

  • PR description included
  • Tests are changed or added
  • Relevant documentation is changed or added (not applicable: this restores the already-generated blocks:dev command; it adds no new user-facing workflow or API documentation.)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ikenyal
ikenyal requested a review from a team as a code owner July 20, 2026 21:09
@changeset-bot

changeset-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d0bb476

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@aws-blocks/create-blocks-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

Multiple ERR_MODULE_NOT_FOUND when following Flutter + Amplify + AWS Blocks quickstart step by step

1 participant