GithubHelp home page GithubHelp logo

Error Starting Blazor about piral.blazor HOT 5 CLOSED

smapiot avatar smapiot commented on July 27, 2024
Error Starting Blazor

from piral.blazor.

Comments (5)

FlorianRappl avatar FlorianRappl commented on July 27, 2024

Hm nope - can you provide a MWE to reproduce the issue? What platform (Windows / Linux / Mac) are you using?

from piral.blazor.

roend83 avatar roend83 commented on July 27, 2024

I'm on windows. I tried zipping up my project but it was too big. I didn't publish my shell to the public NPM feed so I can't just share the blazor app.

I used the piral-cli to create a new shell app and added these dependencies:

  "dependencies": {
    "blazor": "^5.0.0-pre.20210622.1",
    "piral": "^0.13.9",
    "piral-blazor": "^0.14.0-pre.3099"
  }

and added the plugin to index.tsx

renderInstance({
  plugins: [
    createBlazorApi()
  ],
  layout,
  errors,
  requestPilets() {
    return fetch(feedUrl)
      .then(res => res.json())
      .then(res => res.items);
  },
});

and then published it to a private NPM feed.

After that I used version 5.0.0-pre.20210622.1 of Piral.Blazor.Template to scaffold a Blazor app. I pointed it at my private NPM feed and my shell package and built and ran the app. I get this error when I navigate to /counter.

from piral.blazor.

FlorianRappl avatar FlorianRappl commented on July 27, 2024

I tried zipping up my project but it was too big.

Please don't use ZIP. Use a GitHub repository. And please don't add binaries etc. -> standard gitignore rules should apply (so avoid adding dependencies which are anyway resolved via NPM / NuGet / whatever package manager).

Regarding the steps; thanks for providing these - but those are pretty standard steps. They are too generic to help resolving your issue.

There is no need to share your specific project. A MWE is by definition something small and does not require business context. Just try to reproduce your issue in a clean project and share that one once you are successful. Thanks!

from piral.blazor.

roend83 avatar roend83 commented on July 27, 2024

https://github.com/roend83/Piral.Blazor.MWE

There's not a lot to this. Just followed the steps I outlined above.

from piral.blazor.

FlorianRappl avatar FlorianRappl commented on July 27, 2024

I just tested this. It works on my side. Notable changes / my configuration:

  • SDK was 5.0.404 (originally 5.0.401)
  • Updated all parts to latest version (e.g., piral, piral-cli, etc. in 14.0.6) and aligned versions (previously was piral-blazor in 0.14-preview, but piral in 0.13.9)
  • Did not use "localhost" for npm registry, but just the local path (I've built the app shell upfront)

Did not test with the usual configuration as I'm not sure what you took as registry and why you mixed versions (plus, I did not want to install an oudated version of the .NET SDK).

from piral.blazor.

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.