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 in the local vscode ,get this error #41

Open
yangyang520329 opened this issue Jan 3, 2025 · 1 comment
Open

running in the local vscode ,get this error #41

yangyang520329 opened this issue Jan 3, 2025 · 1 comment

Comments

@yangyang520329
Copy link

Deploying service frontend
(x) Failed: Deploying service frontend

ERROR: error executing step command 'deploy --all': failed deploying service 'frontend': failed invoking event handlers for 'predeploy', 'predeploy' hook failed with exit code: '1', Path: 'C:\Users\sean\AppData\Local\Temp\azd-predeploy-2687345345.ps1'. : exit code: 1, stdout: , stderr: Export-ModuleMember: C:\Users\sean\AppData\Local\Temp\azd-predeploy-2687345345.ps1:4:1
Line |
4 | Export-ModuleMember -Variable BACKEND_API_URI && npm run build
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The Export-ModuleMember cmdlet can only be called from inside a module.

@sinedied
Copy link
Collaborator

sinedied commented Jan 6, 2025

Hi, this error usually occurs when you're using an older powershell version. Please make sure you have Powershell 7 installed: https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.4

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

No branches or pull requests

2 participants