Skip to content
New issue

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

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

Already on GitHub? # to your account

initial setup error #143

Closed
landonreed opened this issue Dec 7, 2018 · 4 comments
Closed

initial setup error #143

landonreed opened this issue Dec 7, 2018 · 4 comments

Comments

@landonreed
Copy link
Contributor

Issue by esoftgsp
Tuesday Oct 03, 2017 at 16:51 GMT
Originally opened as catalogueglobal#37


Hi,
I'm trying to build datatools ui & server using the latest version of their dev repositories.
The server seems ok and I can successfully login into the application from port 9966, but in the browser the app reports the following error:
"Error: 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)."

For the UI, I'm not sure about what build instructions should I follow between:
http://conveyal-data-tools.readthedocs.io/en/latest/dev/deployment/
and
http://conveyal-data-tools.readthedocs.io/en/user-doc-update/dev/deployment/

I followed this one:
$ mastarm build --config /path/to/configurations/dir
but I had to run "npm install" and copy the "package.json" into "\node_modules\react-modal\node_modules\react" because it was missing and crashed the build.

Should I use webpack? I tried to install it (with yarn and npm install) but it's not working (I'm using windows)
Any advice?
Thanks,
Marco

@landonreed
Copy link
Contributor Author

Comment by landonreed
Friday Oct 06, 2017 at 14:25 GMT


Hi @esoftgsp, sorry for the confusion. You should be using http://conveyal-data-tools.readthedocs.io/en/user-doc-update/dev/deployment/

All you need to do to build is yarn build (with the option to pass a different config directory with -- config /path/to/dir.

You can also serve the files with yarn start (some option for config).

Webpack will not work with the application.

@landonreed
Copy link
Contributor Author

Comment by esoftgsp
Tuesday Oct 10, 2017 at 16:06 GMT


Hi @landonreed, thanks for your response but it didn't work, I repeated all the instructions in a new machine (this time I used centos linux), but I'm getting the same error in the browser's js console.
(Using "yarn" I didn't have to copy the "package.json" file as workaround, this worked fine).
This is what I've done:
$ npm install
$ yarn
(success Already up-to-date.)
$ yarn build
$ yarn start

(I'm using nodejs 6.11.4)

Could you share a zip of a working "datatools-ui" already built with all the dependencies and ready to deploy?
Otherwise I would ask for an help debugging the browser error (Error: addComponentAsRefTo ...), is there any other log I can enable?

This is a log of the error I get in the browser
js_error.txt

js_error_screenshot

Thanks,
Marco

@landonreed
Copy link
Contributor Author

Comment by landonreed
Tuesday Nov 13, 2018 at 18:10 GMT


Apologies for the non-response, @esoftgsp. There have been significant changes to the application setup (on the dev branch) since this issue was created. I am closing this for now, but please re-open if you continue to experience these issues on the dev branch.

@landonreed
Copy link
Contributor Author

🎉 This issue has been resolved in version 4.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant