Code Monkey home page Code Monkey logo

Comments (4)

gcoines-uoc avatar gcoines-uoc commented on July 22, 2024 1

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.

jarivainola avatar jarivainola commented on July 22, 2024 1

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.

t-rhex avatar t-rhex commented on July 22, 2024

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.

nutmix avatar nutmix commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.