-
-
Notifications
You must be signed in to change notification settings - Fork 154
TypeError: Object(...) is not a function #57
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
See #56 (comment), #43 (comment) and #35 (comment). Does updating create-react-app solve the issue? |
Yes! sorry, didn't see those. Thanks. |
Awesome, glad it was an easy fix 😊 |
This doesn't work with react-create-app-typescript. They've merged .mjs support, still nada for me. To reproduce: npm install -g create-react-app
create-react-app my-app --scripts-version=react-scripts-ts
cd my-app/ Create a declare module 'apollo-upload-client'; Add this to import { createUploadLink } from 'apollo-upload-client';
export const uploadLink = createUploadLink({ uri: `/manage` }); |
@savovs are you sure the |
Whoops, looks like they might be behind. Sometimes I wish I stuck with JS... 😀 |
check the version of @angular/cdk&material in your package.json if you see a version above 5.2.4 and you're using angular 5 try to downgrade it using those commandes hope it work for you :) |
TypeError: Object(...) is not a function |
I got this issue. Was trying to use hooks on a non-hooky react version. All good now (npm install react{,-dom}@latest) |
When trying to import
createUploadLink
, throws the error:TypeError: Object(...) is not a function
in7.0.0-alpha.3
.The text was updated successfully, but these errors were encountered: