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

(x) Failed: Deploying service webapp in Windows #97

Closed
rajaveernapu opened this issue Aug 26, 2024 · 2 comments
Closed

(x) Failed: Deploying service webapp in Windows #97

rajaveernapu opened this issue Aug 26, 2024 · 2 comments

Comments

@rajaveernapu
Copy link

Please provide us with the following information:

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

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

When I run the AZD Up, everything is working in terms of deploying resources but it is failing in deploying webapp.

Any log messages given by the failure

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

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Node : v22.5.1
PowerShell : PowerShell 7.4.5
Windows 11
azd version 1.9.5

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@Azure-Samples Azure-Samples deleted a comment Aug 26, 2024
@Azure-Samples Azure-Samples deleted a comment Aug 26, 2024
@Azure-Samples Azure-Samples deleted a comment Aug 26, 2024
@sinedied
Copy link
Contributor

Could you update your repo and retry? This was fixed in #93

@rajaveernapu
Copy link
Author

Its working after upgrade. Thank you

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

3 participants
@rajaveernapu @sinedied and others