Comments (3)
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.
from contosouniversitydotnetcore-pages.
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.
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)
- build.ps1 fails due to "Roundhouse" invalid path
- Unit test using the wrong database HOT 1
- How will Swagger handle schemas with same name? HOT 1
- "The variable '$msgs' cannot be retrieved" HOT 2
- FluentValidation not invoked from tests HOT 1
- Warning EF1001 AsyncLock
- Internal Api warning Microsoft.EntityFrameworkCore.Internal.AsyncLock HOT 4
- Question about how to manage multiple user interface HOT 1
- Mediator.Send(), ApplicationInsightsTelemetry throws an Exception in xUnit integration test.
- [Question] How do you handle NotFound, Conflict, and Forbidden when editing resources? HOT 1
- Static test fixture vs xunit Collection Fixtures HOT 3
- Support for based Webassembly
- redirect after create fails HOT 3
- .NET 5 version HOT 1
- Test database login failed for user error? HOT 1
- For Login Functionality any suggestion on current solution
- SliceFixture with AutoMapper HOT 1
- generic error handler in `config.js` HOT 1
- 'Data' portion of string is truncated from output in ยด[Display(Name="...")]' attributes
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 contosouniversitydotnetcore-pages.