Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #26

Open
madhuridhangar opened this issue Jul 18, 2020 · 2 comments
Open

error #26

madhuridhangar opened this issue Jul 18, 2020 · 2 comments

Comments

@madhuridhangar
Copy link

< ReactGantt
^

SyntaxError: Unexpected token '<'
?[90m at Loader.moduleStrategy (internal/modules/esm/translators.js:122:18)?[
39m
?[90m at async link (internal/modules/esm/module_job.js:42:21)?[39m

@clayrisser
Copy link
Owner

Can you send me what you are doing that causes this issue?

@madhuridhangar
Copy link
Author

I want to create a process scheduling algorithm simulator thats why i want to create ganttchart using react.js library.
And for that I'm using this given codes:
import ReactGantt, { GanttRow } from 'react-gantt';

class Demo extends Component {
render() {
return (
<ReactGantt
templates={{
myTasks: {
title: 'My Tasks',
steps: [
{
name: 'Task Phase One',
color: '#0099FF'
},
{
name: 'Task Phase Two',
color: '#FF9900'
}
]
}
}}
leftBound={moment().set({hour: 0, date: 30, month: 5, year: 2016}).toDate()}
rightBound={moment().set({hour: 0, date: 29, month: 8, year: 2016}).toDate()}
>
<GanttRow
title="Task 1"
templateName="myTasks"
steps={[
moment().set({hour: 0, date: 1, month: 6, year: 2016}).toDate(),
moment().set({hour: 0, date: 4, month: 8, year: 2016}).toDate(),
moment().set({hour: 0, date: 17, month: 8, year: 2016}).toDate()
]}
/>
<GanttRow
title="Task 1"
templateName="myTasks"
steps={[
moment().set({hour: 0, date: 27, month: 2, year: 2016}).toDate(),
moment().set({hour: 0, date: 9, month: 7, year: 2016}).toDate(),
moment().set({hour: 0, date: 22, month: 7, year: 2016}).toDate()
]}
/>

);
}
}

Can you suggest me some ways to creating simulator for scheduling algoritm's Gantt charts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants