Git Product home page Git Product logo

Comments (7)

mrsweaters avatar mrsweaters commented on July 24, 2024

Try require('tributejs/src'). Does that work?

from tribute.

hew avatar hew commented on July 24, 2024

@mrsweaters That should work, but I'm not actually requiring manually. I'm trying to use https://github.com/BolsteDev/react-tribute, which makes use of tributejs as a dependency.

from tribute.

mrsweaters avatar mrsweaters commented on July 24, 2024

Hmm, I'm not sure what the issue is there. It looks like vue-tribute is successfully importing from root, I'm not sure why the React library isn't doing the same. For the Angular port, I just point it to the src directory. Maybe ask the react-tribute creators to do the same?

Let me know if there is anything I need to change on my end.

from tribute.

mrsweaters avatar mrsweaters commented on July 24, 2024

What build environment are you using? Webpack?

from tribute.

hew avatar hew commented on July 24, 2024

I'm pretty sure the issue is that utils.js is missing from the dist folder. It should be there, no?

https://github.com/zurb/tribute/blob/master/dist/tribute.js#L10

To be clear: whatever file is listed here, is what will be used by default by other libraries.

from tribute.

mrsweaters avatar mrsweaters commented on July 24, 2024

Fixed! Sorry for the long wait! 534d5e9

from tribute.

dawgavins avatar dawgavins commented on July 24, 2024

Hi there. I just recently installed ('npm install tributejs'), and get this issue. Its not just './utils' that is missing, but also './TributeEvents', './TributeSearch', everything that is imported at the top of tribute.js in the dist folder. i.e.:

Error: Cannot find module './utils' from '/Users/User/Documents/project/elletourage-app/node_modules/tributejs/dist'
Error: Cannot find module './TributeEvents' from '/Users/User/Documents/project/elletourage-app/node_modules/tributejs/dist'
...<same thing for other modules>
I am not using Webpack for this project. All I've done is import Tribute from 'tributejs', alongside the import of many other NPM packages that are working.

I see that the contents of those helper files have been inserted into the Tribute.js file in the dist directory, So the error I'm getting is an import/flow problem of some sort. Any thoughts would be welcome.

from tribute.

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.