← All tasks
javascriptbowser-js/bowser #353Not a task: not reproduced

ES6 example in README does not work

envgap__bowser-js__bowser-353

01 / FAILURE SIGNATURE

As reported upstream

Here is the error message I'm getting from Rollup: `[!] Error: 'default' is not exported by node_modules/bowser/es5.js`
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
9791ffeaf6911c9361dc97883cb9dedb8e8a461e
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

bowser-js/bowser #353 · read the original issue
The ES6 example in the README does not work because there is no `default` export for the ES5 bundle. Here is the example I'm referring to:



```

import Bowser from "bowser";

```

Here is the error message I'm getting from Rollup: `[!] Error: 'default' is not exported by node_modules/bowser/es5.js`



This could be resolved either by updating the example to import from `bowser/src/bowser`, or by adding a ["module" field](https://github.com/rollup/rollup/wiki/pkg.module) to `package.json` to indicate where the ES6 entrypoint is.
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
[]