aws-amplify / aws-amplify/amplify-cli

amplify pull throws FeatureFlags is not initialized error

Open
#11,396 1 comment 1 reaction 0 assignees View on GitHub
bug p2 platform-pull windows
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### Before opening, please confirm:

- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-cli/blob/dev/CONTRIBUTING.md#bug-reports).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

### How did you install the Amplify CLI?

_No response_

### If applicable, what version of Node.js are you using?

_No response_

### Amplify CLI Version

10.4.1

### What operating system are you using?

Windows

### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

no

### Amplify Categories

Not applicable

### Amplify Commands

pull

### Describe the bug

When running Amplify pull headless and amplify pull on a existing studio app in `powerhell` the following error is thrown

```
🛑 FeatureFlags is not initialized
```
When using a headless pull, noticed the application does not prompt for a allow modify backend, throws error. Then pull fails entirely.

On existing application create by amplify CLI and then studio enabled the pull will throw the error after the UI components have been synched.

```
Edit your schema at C:\amplify\studioApps\taskapp\amplify\backend\api\taskapp\schema.graphql or place .graphql files in a directory at C:\amplify\studioApps\taskapp\amplify\backend\api\taskapp\schema
√ Successfully pulled backend environment dev from the cloud.
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating

√ Synced UI components.
⚠️ The components ItemCardCollection were synced with an older version of Amplify Studio. Please re-sync your components with Figma to get latest features and changes.
✅ GraphQL schema compiled successfully.

Edit your schema at C:\amplify\studioApps\taskapp\amplify\backend\api\taskapp\schema.graphql or place .graphql files in a directory at C:\amplify\studioApps\taskapp\amplify\backend\api\taskapp\schema
🛑 FeatureFlags is not initialized
```

** Note: when testing this in WSL the application works as expected.

### Expected behavior

pull works in powershell

### Reproduction steps

Amplify headless
1. create studio app
2. open powershell
3. amplify pull

Amplify pull
1. open powershell
2. amplify init
3. enable studio
4. create a data model
5. create forms in UI builder
6. amplify pull

### GraphQL schema(s)

```graphql
# Put schemas below this line

```

### Project Identifier

6c986368d58e7b7a74f2a89d48b57947

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.