Comments (7)
Some sort of integrity error with @typescript-eslint/typescript-estree also happens with @typescript-eslint/visitor-keys
from webapps-deploy.
@Fish1 Take a look at npm/npm#16861
from webapps-deploy.
@Fish1 Take a look at npm/npm#16861
Will probably be able to take a deeper look on Monday. But if the solution is to upgrade npm, wouldnt that be in the control of this azure deployment script?
from webapps-deploy.
@Fish1 Oh, interesting. Looks like the Oryx Build is reusing the NPM cache. That looks like a bug in the Oryx build not this.
You can get around this by doing the build yourself before deploy
steps:
- uses: actions/checkout@master
- name: Use Node.js ${{ vars.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}
- name: npm install, build, and test
run: |
npm prune --production
npm install
npm run build:${{ github.ref_name }} --if-present
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
with:
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ vars.PACKAGE_PATH }}
replace npm run build:${{ github.ref_name }} --if-present
with whatever your build script is (I use the repo branch name) and replace ${{ vars.PACKAGE_PATH }}
with whatever your ultimate ./dist folder is.
from webapps-deploy.
So the issue with doing this is that we now have to upload about 138M of data to the deployment script. Now I compile typescript, then move the node_modules into the dist folder.
from webapps-deploy.
So the issue with doing this is that we now have to upload about 138M of data to the deployment script. Now I compile typescript, then move the node_modules into the dist folder.
@Fish1 As I pointed out in a different reply you should never be deploying node_modules to production. You can easily fix this by setting up a webpack build. Your deployment should drop from 138M to about 2M. There are 100s of articles on webpack with TS but this is the first one I found https://blog.logrocket.com/using-webpack-typescript/
Realistically, all you need is webpack in your package json and a webpack config file for TS.
from webapps-deploy.
Thanks for the help! Everything is working now. I just had to manually go into the server and delete all the files, because my disk was full. I suppose this issue should be closed, as it's more of an Onyx issue?
from webapps-deploy.
Related Issues (20)
- Successful deployment reported despite error HOT 2
- Code is not updated in linux based Azure Functions using ZIP package deploy HOT 1
- v3 deployment does not work with clean:false HOT 13
- Not able to apply npm install flags HOT 1
- README doesn't have a v3 example or explanation of the differences HOT 4
- Add sample(s) for OIDC HOT 1
- Azure Web App deployment from .zip fails after successfully deploying the content HOT 2
- V3 using node.js 16 upgrade to node.js 20 seeing 16 is deprecated HOT 16
- Deploy to web app does not working for .NET 8 and Linux based deployment - azure/webapps-deploy@v3 HOT 4
- Microsoft Azure Build and deploy PHP app to Azure Web App: Laravel App - Unable to create lockable file HOT 2
- Deployment Faile***, Error: Resource azwb********-tot doesn't exist. HOT 5
- The new option Clean should have defaulted to false or been highlighted as a breaking change HOT 4
- Azure Web Application not updated, action still claims "Success" HOT 9
- Can't deploy to ACA-based Function App
- Cann't show submit messages, ONLY show OneDeploy
- Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.'
- nodes
- util_1.promisify is not a function HOT 4
- Long deployment urls are cut off for slots HOT 1
- update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapps-deploy.