Comments (7)
Try require('tributejs/src')
. Does that work?
from tribute.
@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.
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.
What build environment are you using? Webpack?
from tribute.
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.
Fixed! Sorry for the long wait! 534d5e9
from tribute.
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)
- tributejs npm package version 5.1.3 is lastest, but not have loadingItemTemplate in options HOT 1
- Hi, why I can't use arrow key on my mention tooltip HOT 1
- Menu is offset incorrectly
- Cannot set cursor in front of the mention tag
- DOM-based XSS due to un-escaped special characters HOT 1
- Is it possible to add dropdown with heading?
- Removing items with backspace is not working when added by showMenuForCollection menu HOT 3
- Removing characters one by one with backspace then auto suggesting is not working HOT 1
- Instead of characters matches, is there words can match
- latest Typescript complile error
- Option to use DOM elements instead of HTML strings as templates
- Typescript 4.8.2 (Required by Angular 15) TributeOptions Type issue
- Update to stimulus-use debounce broke remote data load
- Error while clicking on scroll bar - chrome on mac
- Replacing words that contains space
- Performance issue and freezes
- When we can have a new version with the latest changes from master? HOT 2
- Tribute doesnot seem to work inside bootstrap modal.
- Disable the need a symbol to starts the lookup
- Issue with Deleting Mention via Programmatic Trigger in Tribute.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tribute.