dayjs-website icon indicating copy to clipboard operation
dayjs-website copied to clipboard

docs: fix import example for ES 2015 at: loading-into-nodejs.md

Open elizatlawy opened this issue 2 years ago • 3 comments

The import as described in the documentation does not work:

import AdvancedFormat from 'dayjs/plugin/advancedFormat' // ES 2015 It should be:

import AdvancedFormat from 'dayjs/plugin/advancedFormat.js' // ES 2015

elizatlawy avatar Aug 10 '23 12:08 elizatlawy

Thanks, I see the related issue. Can you please provide a re-production instruction so that I can check it in depth?

iamkun avatar Dec 30 '23 06:12 iamkun

@iamkun try to import it:

import advancedFormat from 'dayjs/plugin/advancedFormat';

elizatlawy avatar Jan 11 '24 14:01 elizatlawy