← All tasks
javascriptiamkun/dayjs #313Not a task: not reproduced

ES6 Module Support?

envgap__iamkun__dayjs-313

01 / FAILURE SIGNATURE

As reported upstream

my-app.ts:73 One or more components failed to load SyntaxError: The requested module '../node_modules/dayjs/dayjs.min.js' does not provide an export named 'default'
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
f2e479006a9a49bc0917f8620101d40ac645f7f2
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

iamkun/dayjs #313 · read the original issue
I am trying to use this library in a polymer 3 typescript project.  Would it be possible to add support for es6 modules?



Code

```javascript

import dayjs from 'dayjs';

```



Result

```

my-app.ts:73 One or more components failed to load SyntaxError: The requested module '../node_modules/dayjs/dayjs.min.js' does not provide an export named 'default'

```



Workaround

```

<script src="node_modules/dayjs/dayjs.min.js" async></script>

```
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]