question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[export] incorrect report on `export * as`

See original GitHub issue
// processors/remark.js
export const remark = {}

// processors/index.js
export * as processors from './remark'

// rules/remark.js
export const remark = {}

// rules/index.js
import { remark } from './remark'

export { remark }
export const rules = { remark }

// index.js
export * from './processors'
export * from './rules'

Unexpected error:

Multiple exports of name 'remark'

But processors doesn’t export remark at all.


Workaround:

// processors/index.js
import { remark } from './remark'

export const processors = { remark }

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
JounQincommented, Apr 5, 2021
0reactions
devfservantcommented, Nov 19, 2021

Having the same “Multiple exports” false positive issue with a slightly different situation:
(where remark is not even exported from rules/index.js)

root
│   index.ts
│
└───bar
│   │   bar.utils.ts
│   │   index.ts
│
└───foo
    │   foo.utils.ts
    │   index.ts
// bar/bar.utils.ts
export const getOptions = (): any => {};
// bar/index.ts
export * as barUtils from './bar.utils';
// foo/foo.utils.ts
export const getOptions = (): any => {};
// foo/index.ts
export * as fooUtils from './foo.utils';
// index.ts
export * from './bar';
export * from './foo';
/../root/index.ts
  1:1  error  Multiple exports of name 'getOptions'  import/export
  2:1  error  Multiple exports of name 'getOptions'  import/export
✖ 2 problems (2 errors, 0 warnings)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot problems running or exporting a report
Check for report timeout · Use a shorter date range. · Use fewer dimensions and metrics. · Use more granular filters. · If...
Read more >
FIX: Incorrect page numbers are displayed when you export a ...
In this scenario, the report displays incorrect page numbers and the page number is reset unexpectedly, even when there is no group change....
Read more >
Report formatting does not export correctly
When exporting a report, the formatting may not export correctly. This is due to the advanced reporting ... Exported reports shows incorrect format....
Read more >
Export data to excel is showing incorrect data
Hi, I am trying to export data from my tables and it is incorrect. the data export is from a completely different table....
Read more >
When reports are exported to Excel, the format of the numbers ...
Hi nolien,. Let me help you correctly export your report to excel. This might have something to do with the setup of your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found