Closed hustcc closed 6 years ago
Use expose_loader to load the moment if u use web pack in your project.this will solve this issue.
Is this deliberately change to use global moment
?
Yes, it loaded the moment globally.
Put moment into peer
, and import it in the source code.
I think this way maybe better.
All the issue https://github.com/hustcc/gantt-for-react/issues?q=is%3Aissue+is%3Aclosed is about the dependency of moment
.
moment.js
is not a dependency anymore 😄
release new version gantt-for-react, use gantt@^2.0.0 as dependence.
Now, the dependencies moment is not
require
in the source code, so we need to importmoment.js
by script tag in html.issues here on my project gantt-for-react, see below.