Skip to content

OAuth is not a constructor #170

@abraao31

Description

@abraao31

I followed the README, and my react-app returns me an error saying "OAuth is not a constructor":

code bellow
FlickrService.js:

import FlickrConfig from "configs/FlickrConfig";
import { createFlickr } from "flickr-sdk";

const { upload } = createFlickr(FlickrConfig);

const FlickrService = {};

FlickrService.post = async (file) => {
    return upload(file, {
        title: "Works on MY machine!",
    });
};

export default FlickrService;

FlickrConfig.js:

const FlickrConfig = {
    consumerKey: "xxxxxxxxxxxxxx",
    consumerSecret: "xxxxxxxx",
    oauthToken: "xxxxxxxxxx",
    oauthTokenSecret: "xxxxxxxxxxxxxx"
  
export default FlickrConfig;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions