Skip to content

Incompatible package used with --wasm deploy #6486

@olivierb24

Description

@olivierb24

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Deploying to web seems to not be working when using --wasm and enabling 'Secure persisted fields' for AppState. The deployment fails because of 'flutter_secure_storage_web' although the package does not exist in the dependencies listed in the project. It seems like the package is added to the dependencies when exporting the code.

Target dart2wasm failed: ProcessException: Process exited abnormally with exit code 254:
/opt/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/lib/flutter_secure_storage_web.dart:5:8: Error: Dart library 'dart:html' is not available on this platform.
import 'dart:html' as html;

Expected Behavior

Enabling wasm should use wasm compatible packages for encryption.

Steps to Reproduce

  1. Create a project with App State encryption
  2. Deploy with --wasm

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT40lMmAx85OodtF0LX1bcFVmiY5JVB9auYzmOxBaCosfZT2BLMcec/RVERDXsPjS1FAfWf8jWoW06nOiuPuVsc5PU6abtlc+qlcVzzgJWSVRq3XFJWgP0d8J/FYFXay1J6nkxFDCPRec1IX2mWMCOe+cC/fQ5v1OkU8Da/LZO4=

Visual documentation

Image

Environment

- FlutterFlow version: 6.2.3+
- Platform: Desktop
- Browser name and version: Chrome
- Operating system and version affected: Windows 11

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions