Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Uncaught TypeError: this.updater.enqueueCallback is not a function when trying selectbox #25

Closed
ionHive opened this issue Oct 22, 2017 · 3 comments

Comments

@ionHive
Copy link

ionHive commented Oct 22, 2017

package.json
{
"name": "viewcreator",
"version": "0.1.0",
"private": true,
"dependencies": {
"babel-eslint": "^7.2.3",
"babel-polyfill": "^6.26.0",
"bootstrap": "^3.3.7",
"d3": "^4.0.0",
"eslint": "^4.9.0",
"eslint-plugin-flowtype": "^2.39.1",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.4.0",
"react": "^16.0.0",
"react-bootstrap": "^0.31.2",
"react-dom": "^16.0.0",
"react-scripts": "^1.0.11",
"react-selectable-fast": "^2.0.5",
"webpack": "^3.8.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}

Able to display the page with selectable elements.
Clicking on + selects the item. Clicking on 'Select All' selects all items. Clicking on 'Clear Selection' clears all. the number of items selected is updated.

When using mouse drag to select, the dots of the drag appear and then the following error is thrown. Nothing is selected.


Uncaught TypeError: this.updater.enqueueCallback is not a function
    at Selectbox../node_modules/react/lib/ReactBaseClasses.js.ReactComponent.setState (ReactBaseClasses.js:64)
    at HTMLDocument.SelectableGroup._this.openSelectbox (SelectableGroup.js:160)
./node_modules/react/lib/ReactBaseClasses.js.ReactComponent.setState @ ReactBaseClasses.js:64
SelectableGroup._this.openSelectbox @ SelectableGroup.js:160

I did npm prune and got a list of peer dependencies. I added them all.

@valerybugakov
Copy link
Owner

valerybugakov commented Oct 22, 2017

@ionHive how can I reproduce this issue in the example (example project in this repo)? Also it looks like a React related error: facebook/react#10320

@valerybugakov
Copy link
Owner

@ionHive I got everything working in a scaffolded CRA with your package.json file.

@ionHive
Copy link
Author

ionHive commented Oct 23, 2017

Thanks! I removed all npm modules and re-added them one by one. Then it worked.

@ionHive ionHive closed this as completed Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants