You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
)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?
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
The text was updated successfully, but these errors were encountered: