Hello, I want to move the project to mvc. When I create the mvc layer, it doesn't add js in the app folder. What could be the problem it gives this as error?
Support Forum
Are you trying to launch the Gantt aspnetcore
demo?
Given the error Could not install from "../../../../build"
I'd recommend you to investigate package.json
contents in the app
folder.
As far as I understand the demo uses relative path to reference the Gantt js-bundle and you cannot just move it to a random folder w/o changing that path . The path should point to the build
folder of the Gantt distribution.
hello i am trying on mvc. In my previous post, I was logging in by showing the app folder a little below, but what happened when I moved to mvc. it no longer extracts files to that location.
last post viewtopic.php?f=52&t=15217
Please don't copy the same question to old posts it makes no sense.
Considering on what I see in your screenshots you moved the demo folder to another location. And the demo uses relative path (namely in aspnetcore/BryntumGanttDemo/wwwroot/app/package.json file.
You cannot just copy it somewhere ..you have to edit that path accordingly.
There are steps in readme.md file in the demo folder. I assume you're following Manual installation
section from there.
If the database is set and npm i
and npm build
commands succeedded then last topic is Building .NET application
.
Use IDE (Visual Studio 2019, VS Code + extenstions, etc) to open solution. Alternatively, you can use CLI:
Install NuGet packages
aspnetcore$ cd BryntumGanttDemo BryntumGanttDemo$ dotnet restore
Change MySQL connection settings at
BryntumGanttDemo/appsettings.json
Run app
BryntumGanttDemo$ dotnet run info: Microsoft.Hosting.Lifetime[0] Now listening on: https://localhost:5000 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Development info: Microsoft.Hosting.Lifetime[0] Content root path: ...Gantt\examples\aspnetcore\BryntumGanttDemo
Now you can open application at https://localhost:5000
Heve you done these steps?
If you need to change crud manager mapped URL then it's defined in app.js file here:
const project = window.project = new ProjectModel({
taskModelClass : Task,
dependencyModelClass : Dependency,
resourceModelClass : Resource,
assignmentModelClass : Assignment,
calendarModelClass : Calendar,
transport : {
load : {
url : 'ganttcrud/load',
paramName : 'q'
},
sync : {
url : 'ganttcrud/sync'
}
},