When i try to deploy my canister in playground i get error failed to build wasm file

when i run dfx deploy --playground i get error

WARN: The default identity is not stored securely. Do not use it to control a lot of cycles/ICP. Create a new identity with `dfx identity new` and use it in mainnet-facing commands with the `--identity` flag
Deploying: repository
All canisters have already been created.
Building canisters...
Executing 'scripts/predeploy.sh repository'
Building repository in ./backend/repository
    Finished release [optimized] target(s) in 4.88s
Size of repository.wasm: 3.9M
candid-extractor not found. Skipping generating repository.did.
ic-wasm not found. Skipping shrinking repository.
Files for repository are in ./canisters/repository
Generating type declarations for canister repository:
Installing canisters...
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.        
  Failed while trying to install all canisters.
    Failed to install wasm module to canister 'repository'.
      install failed
        The replica returned a replica error: reject code CanisterReject, reject message IC0503: Canister ozk6r-tyaaa-aaaab-qab4a-cai trapped explicitly: Panicked at 'called `Result::unwrap()` on an `Err` value: WasmParse("Bad magic number (at offset 0)")', lib.rs:33:49, error code None
fariraimasocha@DESKTOP-OQ34G7F:/mnt/c/Users/farir/Documents/Projects/Decentralised Trade Association/hanse_infrastructure/hanse_infrastructure$

what could be the issue

Are you trying to upload a gzipped wasm? The playground does not support that. Also, I can see a wasm that’s 3.9MB in size in the logs. The playground fails above ~700kb (IIRC)