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

Cannot run tests - sander seems to have multiple exports with the same name #10

Open
teehemkay opened this issue Jul 5, 2016 · 0 comments

Comments

@teehemkay
Copy link

teehemkay commented Jul 5, 2016

I just cloned the repo and then > npm i and got the following error message.

> sander@0.5.1 build:cjs /Users/kmabonzo/Hacking/js/sander
> rollup -c -f cjs -o dist/sander.cjs.js

A module cannot have multiple exports with the same name ('createReadStream')
Error: A module cannot have multiple exports with the same name ('createReadStream')
    at /Users/kmabonzo/Hacking/js/sander/node_modules/rollup/src/Module.js:83:13

Searching the source code, I found the following:

/Users/tmk/Hacking/js/sander/src/sander.js:
    7  export const chmod = asyncMethod( 'chmod' );
    8  export const chown = asyncMethod( 'chown' );
    9: export const createReadStream = asyncMethod( 'createReadStream' );
   10  export const createWriteStream = asyncMethod( 'createWriteStream' );
   11  export const lchmod = asyncMethod( 'lchmod' );
   ..
   62  
   63  // special methods
   64: export { createReadStream, createWriteStream } from './specialMethods/createReadStream-createWriteStream'; // TODO aren't these covered by the standard methods?

FYIW I'm trying to debug gobblejs/gobble#89

Rich-Harris added a commit that referenced this issue Nov 27, 2016
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

1 participant