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

dayjs.from is not a function #1190

Closed
ghost opened this issue Nov 8, 2020 · 1 comment
Closed

dayjs.from is not a function #1190

ghost opened this issue Nov 8, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 8, 2020

index.html:

  <script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
  <script src="https://unpkg.com/dayjs@1.8.21/plugin/relativeTime.js"></script>
  <script src="/static/js/script.js"></script>

script.js:

  dayjs.extend(window.dayjs_plugin_relativeTime);
  var when = dayjs.from();
  console.log(when);

What am I doing wrong?

@ghost
Copy link
Author

ghost commented Nov 8, 2020

I AM STUPID I AM STUPID I AM STUPID ITS dayjs().from()

@ghost ghost closed this as completed Nov 8, 2020
This issue was closed.
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

0 participants