Comments (6)
Sorry for the outdated docs. For development using the demo it is best to run two scripts: npm run autobuild
to build svelte-gantt and npm run demo:dev
to build and serve the demo at localhost:5000
from svelte-gantt.
Thank you for your reply @ANovokmet. I'm still unable to make it run due to the missing global variable names
warning/error. In the browser console, it throws svelteRouting is not defined
error. Am I missing something?
I also noticed that if I remove demo:autobuild
from this script "demo:dev": "run-p demo:start demo:autobuild"
then I can run the demo project at localhost:5000 but I'm sure that is an outdated build as index.js
there doesn't have svelteRouting
and svelteGantt
IIFE args.
from svelte-gantt.
Did you try running npm install
in demo/
directory?
from svelte-gantt.
Yes, I did that. I received a compiler.js
related error after that and to fix that I found I should rollup-plugin-svelte
to at least version 6.1.1
. I did that as well. Now, I see further warnings and errors in the terminal but am also able to run the demo project locally.
This is how my terminal output looks like.
Below are the setup steps I have performed to run this project locally (with some warnings).
npm install
in the root directory.npm run build
in the root directory. This will generate the build artifacts in thedist
directory.npm install
insidedemo
directory.npm i [email protected]
insidedemo
directory to upgrade the plugin version to fix thecompiler.js
related error.npm run autobuild
from the root.npm run demo:dev
from the root.
Please let me know if these steps are correct or not. I've fairly limited experience with both Svelte and Rollup as of now. I hope to improve at both of them and contribute back.
Once again thank you for your help @ANovokmet.
from svelte-gantt.
Cloned into a new folder to test.
I did everything the same as you but except 2. which I didn't do, and as 4. I used npm i -D rollup-plugin-svelte@latest
which fixed the error. And I'm getting no errors there. And then the demo is served at http://localhost:5000/svelte-gantt/
. With no Reference errors in the console.
from svelte-gantt.
Installing the latest rollup plugin for Svelte fixed the remaining issues. Now, I am able to run the demo project. Thank you for your great help. 🙏🏼
from svelte-gantt.
Related Issues (20)
- Expanded only work correctly for the first row HOT 1
- Make an option to print the entire gantt HOT 3
- dateAdapter HOT 1
- Custom styling for the whole gantt chart in svelte with tailwind or custom css? HOT 1
- Cannot read properties of undefined (reading '$$') HOT 2
- Custom task component HOT 1
- Row filtering HOT 2
- External draggable example not working HOT 3
- Can't get the demo to run locally HOT 3
- scaling manually HOT 3
- Fix: querySelector usage in selectTask() throws Uncaught DOMException HOT 1
- Event `gantt.api.timeranges.on.resized` returns previous `from` and `to` values HOT 2
- Collapsing parent rows dynamically results in unexpected child behavior HOT 1
- Block pulling tasks HOT 1
- How could I set the rowHeight for the target single row? HOT 7
- Task Color HOT 1
- Back to full year?
- Cannot synchronize scrolling HOT 1
- Dragging of tasks does not deselect previous selected task HOT 2
- TypeError: Cannot read properties of undefined (reading 'model') when updating rows and tasks HOT 4
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 svelte-gantt.