Plone's new Javascript UI

Hi!
I am interested in the Javascript Plone Client and would like to work on it. I am familiar with Angular2 and working on the Plone Client would help me to contribute to Plone.

I have cloned the plone_client repository: "https://github.com/plone/plone_client" and have some errors when "npm start" is typed.Can someone help me get started?

1 Like

@aimananees it's great that you're interested in this!

It's important to give as much detail as possible when you run into a problem. http://docs.plone.org/askforhelp.html

e.g., the version of Plone, your buildout.cfg, the exact command you typed, what was the full error message.

When I type "npm install" for installing this plone project, npm install fails with unmet dependencies:

"npm WARN webpack-dev-server@2.1.0-beta.12 requires a peer of webpack@^2.1.0-beta.26 but none was installed."

The following output is produced"
├─┬ @angular/platform-server@2.0.0
│ └── parse5@1.3.2
├─┬ preboot@2.1.2
│ └─┬ typings@0.8.1
│ ├── minimist@1.2.0
│ ├─┬ typings-core@0.3.1
│ │ ├─┬ popsicle@5.0.1
│ │ │ └─┬ form-data@0.2.0
│ │ │ ├── async@0.9.2
│ │ │ ├─┬ combined-stream@0.0.7
│ │ │ │ └── delayed-stream@0.0.5
│ │ │ └─┬ mime-types@2.0.14
│ │ │ └── mime-db@1.12.0
│ │ ├── popsicle-proxy-agent@1.0.0
│ │ ├── popsicle-retry@2.0.0
│ │ ├── popsicle-status@1.0.2
│ │ ├── throat@2.0.2
│ │ └── typescript@1.8.10
│ └── wordwrap@1.0.0
└── UNMET PEER DEPENDENCY webpack@2.1.0-beta.22

webpack has made quite some releases, so you might try a newer version of it, for that see the latest releases of webpack: https://github.com/webpack/webpack/releases

And update it here:

I hope this helps!

I have updated it. But still I get same warning:

"npm WARN webpack-dev-server@2.1.0-beta.12 requires a peer of webpack@^2.1.0-beta.26 but none was installed."

I followed this:
"http://stackoverflow.com/questions/40597626/webpack-validateschema-is-not-a-function/40613991#40613991" and solved the bug.
It's working fine now :slight_smile:

1 Like

Hi @aimananees,

as a sidenote, we also started with an Angular 2 tutorial for the REST API:

This will be never as sophisticated as the plone_client, but it might be easier to get started with it. We are still looking for people that give it a try and that might be willing to write tutorials for other people.

1 Like

Hi @tisto,
Thanks for letting me know :slight_smile: