Comments (8)
Is React
undefined or createClass
? Which version are you trying to use? Importing directly from lib
or the concatenated version in dist
? The one in dist
should work, however you will need to have React
available on the global (window
) scope.
from react-mentions.
it is React undefined..i have imported 0.2.2 from lib.
if i try to build your fileds in src folder with webpack and i do have following error.
any idea?
addComponentAsRefTo(...): Only a ReactOwner can have refs.
from react-mentions.
You got a line number, file for me?
from react-mentions.
Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render
method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
react-with-addons.js:20242
from react-mentions.
This sounds more like an issue with your build than with react-mentions.
from react-mentions.
i just using following command to build your src files.
webpack --output-library="ReactMentions" --output-library="umd" index.js react-mentions.js
from react-mentions.
Since you are using webpack, you should be able to require anything from within the libs without problems. Definitively you should not need to re-build react-mentions as your last post suggests.
from react-mentions.
thanks for your info.
from react-mentions.
Related Issues (20)
- using react-mentions with mongoDB
- Is this a problem in https://react-mentions.vercel.app/ demo?
- How to handle auto-capitalization at the beginning of a sentence?
- cannot use in mobile
- Async data fetching = flashing during load
- Uncaught TypeError: Cannot read properties of undefined (reading 'markup')
- renderSuggestions based on group HOT 1
- Uncaught TypeError: this.renderControl is not a function on chrome extension
- [rl-license_file-1] Violation against OSS Rules of Play
- Is there a possibility to add empty record template? HOT 2
- not detect the data param on <Mention>
- want dynamic attribute on the strong element
- Textarea height does not increase when placeholder text wraps to next line
- Can't I use a simple component instead of re
- Default markup regex breaks when entering `@[`
- For Shadow Dom mentions are now shown
- Cannot focus programmatically, because inputRef becomes null after typing something into the MentionInput
- space key doesn't working well in Google Chrome via Japanese IME #242 HOT 2
- autocorrect text not working
- How to add a new prop into markup beside Id and Display?
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 react-mentions.