Giter VIP home page Giter VIP logo

fetch-instagram's People

Contributors

dependabot[bot] avatar glennreyes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sondrig

fetch-instagram's Issues

Import Error When Following Instructions in WebStorm

I created a new project in WebStorm, ran the command npm install fetch-instagram --save and once installed I created an index.js file in the root directory of the project and inserted the sample code with my key. When I click "Run index.js", I get the error:

C:\Users\User\WebstormProjects\fetch-io\index.js:1
(function (exports, require, module, __filename, __dirname) { import ig from "fetch-instagram";
                                         `                     ^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:152:10)
    at Module._compile (module.js:624:28)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:618:3

Process finished with exit code 1

Command my debug configuration used:

C:\Program Files\JetBrains\WebStorm 2018.2\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" C:\Users\User\WebstormProjects\fetch-io\index.js

Any idea how to get this working? I tried setting up Babel but I'm new to Node/NPM so I'm sure I probably did it wrong.

Access control origin

How can this be tested locally? I'm getting CORS error, but not sure I can specify * to Instagram API regardless. Is this module meant to run in Node or the browser?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.