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

Uppy has no exported member 'default'. #1395

Closed
prograk opened this issue Mar 30, 2019 · 1 comment
Closed

Uppy has no exported member 'default'. #1395

prograk opened this issue Mar 30, 2019 · 1 comment

Comments

@prograk
Copy link

prograk commented Mar 30, 2019

ERROR in node_modules/uppy/types/index.d.ts(6,10): error TS2305: Module '"../../@uppy/core/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(12,10): error TS2305: Module '"../../@uppy/store-redux/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(15,10): error TS2305: Module '"../../@uppy/dashboard/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(16,10): error TS2305: Module '"../../@uppy/drag-drop/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(17,10): error TS2305: Module '"../../@uppy/file-input/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(18,10): error TS2305: Module '"../../@uppy/informer/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(19,10): error TS2305: Module '"../../@uppy/progress-bar/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(20,10): error TS2305: Module '"../../@uppy/status-bar/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(23,10): error TS2305: Module '"../../@uppy/dropbox/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(24,10): error TS2305: Module '"../../@uppy/google-drive/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(25,10): error TS2305: Module '"../../@uppy/instagram/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(26,10): error TS2305: Module '"../../@uppy/url/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(27,10): error TS2305: Module '"../../@uppy/webcam/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(30,10): error TS2305: Module '"../../@uppy/aws-s3/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(31,10): error TS2305: Module '"../../@uppy/aws-s3-multipart/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(32,10): error TS2305: Module '"../../@uppy/transloadit/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(33,10): error TS2305: Module '"../../@uppy/tus/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(34,10): error TS2305: Module '"../../@uppy/xhr-upload/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(37,10): error TS2305: Module '"../../@uppy/form/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(38,10): error TS2305: Module '"../../@uppy/golden-retriever/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(39,10): error TS2305: Module '"../../@uppy/redux-dev-tools/types"' has no exported member 'default'.
node_modules/uppy/types/index.d.ts(40,10): error TS2305: Module '"../../@uppy/thumbnail-generator/types"' has no exported member 'default'.
src/app/directives/uppy/uppy.service.ts(22,11): error TS2709: Cannot use namespace 'Uppy' as a type.

Latest uppy downloaded from NPM is giving error. Don't know what is the issue. I'm trying to implement UPPY in Angular 7 but can't go ahead due to this error.

goto-bus-stop added a commit that referenced this issue Apr 1, 2019
Synthetic default imports allow you to `import X from 'x'` if `'x'` is a
CommonJS module. Our `uppy` package relied on that (probably forgot to
update it in a previous patch). If users had set
`allowSyntheticDefaultImports: false`, they would not be able to use the
`uppy` package.

We should at some point go through the typings again and set everything
to the tightest options, because that'll work with the widest array of
users, but for now let's just unbreak this particular case.

Fixes #1395
@goto-bus-stop
Copy link
Contributor

It's a bug in our uppy typings, sorry about that 😓

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

2 participants