-
-
Notifications
You must be signed in to change notification settings - Fork 739
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
Errors in setting up local dev #60
Comments
@tulikavijay Hey! thanks for the reply, but then could you please tell me what that command does? And also does it fix the backend api issues that I'm facing as well? |
I did a rerun of all the installs, the command @tulikavijay suggested seems to fix the issue with phantomjs, I feel this should be documented if more people are facing the same issue. Also, the commits recently made has solved the backend issues and it seems to be up and running. But then, I still seem to be facing the error on the browser when running |
I think this should do it for installing backend.
Edit : this was before i saw the latest commit, so the PR and comment are not needed. |
@tisto @ajayns |
I too ran into an error on
|
@tulikavijay we should remove phantomjs altogether. This dependency is not needed any longer. |
@ajayns have you tried |
Using the latest version of the
On my browser. On running backend I get this: 2018-01-19 13:43:48 INFO ZServer HTTP server started at Fri Jan 19 13:43:48 2018
Hostname: 0.0.0.0
Port: 8080
2018-01-19 13:44:30 WARNING ZODB.blob (4165) Blob dir /media/ajayns/Projects/Code/xPR/plone-react/api/var/blobstorage/ has insecure mode setting
2018-01-19 13:45:33 INFO Plone OpenID system packages not installed, OpenID support not available
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.add.DefaultAddView has a security declaration for nonexistent method 'browserDefault'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.add.DefaultAddView has a security declaration for nonexistent method 'publishTraverse'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.edit.DefaultEditView has a security declaration for nonexistent method 'browserDefault'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.edit.DefaultEditView has a security declaration for nonexistent method 'publishTraverse'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.delete.DefaultDeleteView has a security declaration for nonexistent method 'browserDefault'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.delete.DefaultDeleteView has a security declaration for nonexistent method 'publishTraverse'
2018-01-19 13:45:44 WARNING Init Class plone.app.drafts.storage.Storage has a security declaration for nonexistent method 'drafts'
2018-01-19 13:45:46 INFO Zope Ready to handle requests Running the dev server there's this error: [development ] [build:dev:client] ERROR in ./node_modules/css-loader?{"importLoaders":2,"sourceMap":true,"localIdentName":"[name]__[local]___[hash:base64:5]"}!./node_modules/less-loader/dist/cjs.js?{"outputStyle":"expanded","sourceMap":true}!./node_modules/semantic-ui-less/semantic.less Should I check out your fix? Is it solving this issue? @tulikavijay |
Please provide a detailed list of steps that you did. "specified in the
readme" is not good enough.
Am 19.01.18 um 09:20 schrieb Ajay NS:
… Using the latest version of the |master| branch I've installed and I'm
running the backend and dev server in accordance to what's specified in
the readme. But what I still seem to get is
|Something went wrong: Invalid token specified: Cannot read property
'replace' of undefined |
On my browser.
On running backend I get this:
2018-01-19 13:43:48 INFO ZServer HTTP server started at Fri Jan 19 13:43:48 2018
Hostname: 0.0.0.0
Port: 8080
2018-01-19 13:44:30 WARNING ZODB.blob (4165) Blob dir /media/ajayns/Projects/Code/xPR/plone-react/api/var/blobstorage/ has insecure mode setting
2018-01-19 13:45:33 INFO Plone OpenID system packages not installed, OpenID support not available
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.add.DefaultAddView has a security declarationfor nonexistent method'browserDefault'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.add.DefaultAddView has a security declarationfor nonexistent method'publishTraverse'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.edit.DefaultEditView has a security declarationfor nonexistent method'browserDefault'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.edit.DefaultEditView has a security declarationfor nonexistent method'publishTraverse'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.delete.DefaultDeleteView has a security declarationfor nonexistent method'browserDefault'
2018-01-19 13:45:44 WARNING Init Class plone.app.tiles.browser.delete.DefaultDeleteView has a security declarationfor nonexistent method'publishTraverse'
2018-01-19 13:45:44 WARNING Init Class plone.app.drafts.storage.Storage has a security declarationfor nonexistent method'drafts'
2018-01-19 13:45:46 INFO Zope Ready to handle requests
Running the dev server there's this error:
[development ] [build:dev:client] ERRORin ./node_modules/css-loader?{"importLoaders":2,"sourceMap":true,"localIdentName":"[name]__[local]___[hash:base64:5]"}!./node_modules/less-loader/dist/cjs.js?{"outputStyle":"expanded","sourceMap":true}!./node_modules/semantic-ui-less/semantic.less
Should I check out your fix? Is it solving this issue? @tulikavijay
<https://github.com/tulikavijay>
Also, any suggestions to fix this? @tisto <https://github.com/tisto>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAmlKcuJOIROvUH4t_KoS8Gkc-DMawyUks5tMFBjgaJpZM4Rd50J>.
|
@tisto Sorry for the late reply. For setting up I've run $ yarn
$ cd api
$ python bootstrap-buildout.py
$ ./bin/buildout And to run the server $ cd api
$ ./bin/instance fg
// Another terminal window
$ yarn dev And the output on the browser then seems to be:
|
Which version of npm and yarn are you using? |
npm: 5.6.0 |
@ajayns sorry, I meant which node version are you using. Your yarn version is outdated, please make sure you use the latest one. |
@tisto I'm using node version 8.9. Okay will do updates and try reinstalling from scratch? |
Yes. |
@tisto After updating yarn when I run 'yarn' to install packages, it seems to show my version of node is incompatible and it requires '6.11'. Shouldn't plone-react be updated to support the latest LTS version of Node? Or right now I'll just downgrade my Node locally for it to work? |
The tutorial was aimed at Plone developers who know the details about
buildout.
Here is what you need to do:
- copy the buildout configuration to buildout.cfg
- wget
https://raw.githubusercontent.com/plone/buildout.coredev/5.1/requirements.txt
- virtualenv . (you need virtualenv with Python 2.7 installed)
- bin/pip install -r requirements.txt
- bin/buildout
Am 22.01.2018 um 21:57 schrieb Ajay NS:
… @tisto <https://github.com/tisto> After updating yarn when I run 'yarn'
to install packages, it seems to show my version of node is incompatible
and it requires '6.11'. Shouldn't plone-react be updated to support the
latest LTS version of Node? Or right now I'll just downgrade my Node
locally for it to work?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAmlKbUd-8m2av3j7i5YWnNMfES4Y86aks5tNPZHgaJpZM4Rd50J>.
|
@tisto Okay so, I've got an instance of Plone running with its restapi at Running
I think it's a problem with the frontend installation probably. Any luck installing @tulikavijay ? |
Fixed by #74 |
To setup the development environment, I've followed the steps in README.md.
The command
yarn
returns the following errors.The backend setup also seems to return a few errors.
Running
./bin/buildout
This error also meants the
./bin/instance
is never created only.Still running the dev server with all these errors shows this: (Just added this more info for debug)
@tisto Please help me out here!
The text was updated successfully, but these errors were encountered: