Giter Site home page Giter Site logo

Comments (3)

RickTheHat avatar RickTheHat commented on September 6, 2024

Some packages got updated and I'm sure they could be fixed i.e bootstrap was upgraded to 4.3.1 but there's code that references bootstrap 3.3.7 (see pic ... I don't think the flash of validation is supposed to work that way). If I'm able to fix these while I learn more about this vertical slice architecture, I'll create a PR.
error with validation

from contosouniversitydotnetcore-pages.

TDK1964 avatar TDK1964 commented on September 6, 2024

I needed to move the following scripts to the header in order for it to work.
Don't know why this should make a difference but it did.

<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/lodash/dist/core.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.js"></script>
<script src="~/js/site.js"></script>

from contosouniversitydotnetcore-pages.

cdgipson avatar cdgipson commented on September 6, 2024

Something in this method or sub-methods was throwing an error stating that it could not find _.reject(). I found this by adding the alert statement to the catch.

var highlightErrors = function (xhr) {
    try {
        var data = JSON.parse(xhr.responseText);
        highlightFields(data);
        showSummary(data);
        window.scrollTo(0, 0);
    } catch (e) {
        alert(e);
        // (Hopefully) caught by the generic error handler in `config.js`.
    }
};

To fix this, I had to replace the following.

<script src="~/lib/lodash/dist/core.js"></script>

with this

<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>

Hope this helps.

from contosouniversitydotnetcore-pages.

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.