Comments (4)
I faced the same issue. Inspecting the code at https://github.com/Microsoft/Oryx source code, I realized that Oryx tries to identify a node based app checking if there's a package.json file under the app path you've specified in your settings.
¿Could you check you've properly set the path to your app's folder within your .yml file?
For instance, if your project folder has this structure:
- /
- public/
- src/
- package.json
then your settings within a .yml file should be -> app_location: "/" output_location: "dist"
In case your folder structure has more levels, for instance:
- /
- /app1
- /app2
- /app3
- public/
- src/
- package.json
then your settings within a .yml file should be -> app_location: "/app3" output_location: "dist"
This worked for me. If you don't get it running with my suggestion, could you please share the specifics of your project structure?
Cheers.
from mslearn-staticwebapp.
Thanks for providing these suggestions. File package.json exists and project folder structure was like the one in first example. I think the issue might have been in the path settings. And I was using react instead of custom.
I tried again the learning module and now I was able to deploy (and redeploy) successfully webapp by following the instructions.
from mslearn-staticwebapp.
I was having the same issue. For me,Its mostly because I didn't select location for the application and didn't select output folder where the files will be built for production. Please follow step 6-10 and it should work without problem. After naming the app on step 5, click on custom rather than react or angular. Hope that helps.
from mslearn-staticwebapp.
I have had no luck trying to get a hello world html page to build or deploy. Project structure is:
/index.html
/my.js
/my.css
/xxx.yaml <= generated by azure portal.
the yaml build file is in the root, with the following content:
`
- task: AzureStaticWebApp@0
inputs:
azure_static_web_apps_api_token: $(AZURE_STATIC_WEB_APPS_API_xxxx)
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "" # Built app content directory - optional
`
The error message is:
Detecting platforms... Could not detect any platform in the source directory. Error: Could not detect the language from repo.
Any ideas how to fix?
have also tried output_location: "/"
from mslearn-staticwebapp.
Related Issues (20)
- React app does not update properly HOT 2
- Support for password authentication was removed on August 13, 2021.
- React tutorial fails with ESLint error: failed to load `babel-eslint` parser HOT 2
- React-App Delete and Edit Buttons aren't displayed HOT 1
- npm install not working HOT 1
- Node LTS Version HOT 3
- vue-app build fails due to eslint error HOT 2
- package.json file missing
- Angular app build completes without building angular resources.
- Learn module still refering to the deleted api files HOT 4
- mslearn-staticwebapp repository doesn't exist api-starter folder HOT 1
- No url found for submodule path
- vue-loader requires @vue/compiler-sfc to be present in the dependency tree
- npm install - error: 'remove_cv_t' is not a member of 'std' (vue-app, node 16) HOT 3
- Python2 should be mentioned as pre-requisite HOT 1
- Compatible Node version(s) should be stated in pre-requisites
- Action fails when creating static web app (vue-app) HOT 2
- CosmosDb bindings HOT 1
- React node-sass error with Node 16.16.0 HOT 2
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 mslearn-staticwebapp.