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

yarn react-scripts start webpack bundle.js #19

Closed
2 of 3 tasks
mabr0wn opened this issue Nov 12, 2018 · 1 comment
Closed
2 of 3 tasks

yarn react-scripts start webpack bundle.js #19

mabr0wn opened this issue Nov 12, 2018 · 1 comment

Comments

@mabr0wn
Copy link
Owner

mabr0wn commented Nov 12, 2018

working with React-Hooks, we get the generic Hooks can only be called inside the body of a function component. Confirmed hooks are within the react functional component

Uncaught Error: Hooks can only be called inside the body of a function component.
  • Tested in webpack-dev mode.

  • Testing in yarn start NODE_ENV=development react-scripts start

  • Tested in docker-compose up --build, complies without any errors.

Error seems to be only attached with dev build with out docker. may be related to issue #1088

@mabr0wn
Copy link
Owner Author

mabr0wn commented Nov 12, 2018

tested in both webpack-dev and in prod build with docker and they work fine, if you remove the bundle div tag all works fine with-out error, work around for now.

@mabr0wn mabr0wn closed this as completed Jul 2, 2019
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

1 participant