ant-design-blazor / ant-design-pro-blazor

πŸ‘¨πŸ»β€πŸ’»πŸ‘©πŸ»β€πŸ’» An out-of-box UI solution for enterprise applications as a Blazor boilerplate.
https://pro.antblazor.com/
Apache License 2.0
768 stars 135 forks source link

Error when deploy to Azure #78

Closed jackiesphan1996 closed 2 months ago

jackiesphan1996 commented 3 years ago

I got this error when deploying to Azure by VS publish function.

This is error details:
0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'gulp:pro' 1 verbose cli ] 2 info using npm@6.14.6 3 info using node@v12.18.3 4 verbose config Skipping project config: C:\Users\hoang.phan/.npmrc. (matches userconfig) 5 verbose stack Error: ENOENT: no such file or directory, open 'C:\Users\hoang.phan\package.json' 6 verbose cwd C:\Users\hoang.phan\source\repos\LBT.Blazor 7 verbose Windows_NT 10.0.19042 8 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "gulp:pro" 9 verbose node v12.18.3 10 verbose npm v6.14.6 11 error code ENOENT 12 error syscall open 13 error path C:\Users\hoang.phan\package.json 14 error errno -4058 15 error enoent ENOENT: no such file or directory, open 'C:\Users\hoang.phan\package.json' 16 error enoent This is related to npm not being able to find a file. 17 verbose exit [ -4058, true ]

Thanks so much.

ElderJames commented 3 years ago

Thanks for contacting us @jackiesphan1996 ,

Please try publishing the deployment file first and then pushing it to the server.

jackiesphan1996 commented 3 years ago

@ElderJames Thanks for you reply. I'm not clear what you mean.

jackiesphan1996 commented 3 years ago

"Please try publishing the deployment file first and then pushing it to the server." I'm confusing about what you mean.

bodzilla commented 3 years ago

Hi @ElderJames , I'm also experiencing the same issue - what do you mean by "Publishing the deployment file first"? And how would you do that via Azure publish in VS?

ElderJames commented 3 years ago

I haven't deploy blazor in VS but using Github Action.

https://github.com/ant-design-blazor/ant-design-pro-blazor/blob/master/.github/workflows/azure-static-web-apps-brave-coast-0edcf6600.yml