Giter Club home page Giter Club logo

Comments (9)

jsanahuja avatar jsanahuja commented on August 18, 2024 2

I believe it should work now. I tested with webpack:

import InstagramFeed from '@jsanahuja/instagramfeed';

console.log(InstagramFeed);

const root = document.createElement("div")
root.id = 'instagram-feed'
document.body.appendChild(root)

new InstagramFeed({
    'username': 'instagram',
    'container': document.getElementById("instagram-feed"),
    'display_profile': true,
    'display_biography': true,
    'display_gallery': true,
    'callback': null,
    'styling': true,
    'items': 8,
    'items_per_row': 4,
    'margin': 1
});

Please try with the new @1.2.3 release
Thank you!

from instagramfeed.

robsonsobral avatar robsonsobral commented on August 18, 2024 1

HI! Thank you for adding, but it looks like something is broken. I can't find the package on NPM.

from instagramfeed.

dhruveonmars avatar dhruveonmars commented on August 18, 2024

Any idea if this has been done, or if it's in progress, or not happening?

I'd like to add it to a Shopify Custom Theme Section, so that it's not unnecessarily loaded on all pages.

from instagramfeed.

jsanahuja avatar jsanahuja commented on August 18, 2024

Added AMD support, please test it.

from instagramfeed.

jsanahuja avatar jsanahuja commented on August 18, 2024

You should now be able to install it using:

npm install jsanahuja/instagramfeed

Thank you both

from instagramfeed.

dhruveonmars avatar dhruveonmars commented on August 18, 2024

Hey @jsanahuja Thanks for adding it, however after installing, and adding import { InstagramFeed } from "@jsanahuja/instagramfeed";, I get Module not found: Error: Can't resolve '@jsanahuja/instagramfeed'

from instagramfeed.

jsanahuja avatar jsanahuja commented on August 18, 2024

What is your environment? Vanilla JS, webpack, node?
A repository example would be helpful

Thanks!

from instagramfeed.

ymongo avatar ymongo commented on August 18, 2024

From https://yarnpkg.com/package/instafeed i got it workin gon nuxt.

Please update your doc: yarn add instafeed

then

import InstagramFeed from 'instafeed'

from instagramfeed.

jsanahuja avatar jsanahuja commented on August 18, 2024

From https://yarnpkg.com/package/instafeed i got it workin gon nuxt.

Please update your doc: yarn add instafeed

then

import InstagramFeed from 'instafeed'

That is not related to this repository

HI! Thank you for adding, but it looks like something is broken. I can't find the package on NPM.

For me it works using npm install jsanahuja/InstagramFeed

If you are trying as it shows here then you need to configure the github registry in your NPM:

npm config set registry https://npm.pkg.github.com/
npm install @jsanahuja/[email protected]

Note that you will have to configure back your registry to install packages that are not in the github registry:

npm config set registry https://registry.npmjs.org/

from instagramfeed.

Related Issues (20)

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.