silexlabs / Silex

Silex is an online tool for visually creating static sites with dynamic data. With the free/libre spirit of internet, together.
https://www.silex.me
GNU Affero General Public License v3.0
2.34k stars 586 forks source link

New issue on installing #820

Closed jotakar closed 2 years ago

jotakar commented 6 years ago

Today I've cloned and install a new instance of Silex and I've found that when I visit the local page this error

debug.js:9 Uncaught ReferenceError: module is not defined
    at debug.js:9

Warning: KeyboardNav(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.
uncaught TypeError: inst.render is not a function
    at cloud-explorer.js:17561
    at measureLifeCyclePerf (cloud-explorer.js:16841)
    at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (cloud-explorer.js:17560)
    at ReactCompositeComponentWrapper._renderValidatedComponent (cloud-explorer.js:17587)
    at ReactCompositeComponentWrapper.performInitialMount (cloud-explorer.js:17127)
    at ReactCompositeComponentWrapper.mountComponent (cloud-explorer.js:17023)
    at Object.mountComponent (cloud-explorer.js:23358)
    at ReactDOMComponent.mountChildren (cloud-explorer.js:22741)
    at ReactDOMComponent._createInitialChildren (cloud-explorer.js:18484)
    at ReactDOMComponent.mountComponent (cloud-explorer.js:18303)

In the installation process I've get

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-ia32-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-ia32-57_binding.node": 

HTTP error 404 Not Found

It looks llike a problem with cloud-explorer, and I suppose with node-sass I've installed node-sass (npm install node-sass) and then installed the package again, But the results are the same: it doesn't work. Older installation (from about September 1th) works fine Perhaps it's a problem with installation process. System runs ubuntu 14.04, node 8.10, npm 6.42 Any suggestion?

JbIPS commented 6 years ago

The problem is with CloudExplorer and I don't think it has something to do with SASS or the installation.

I suppose something change in the source since your last install, presumably in the KeyboardNav class if I read the error.

Any idea of what this could be @lexoyo?

lexoyo commented 6 years ago

I didn't touch this one class recently, maybe the last merge?

Le 6 oct. 2018 à 00:44, à 00:44, Jean-Baptiste Richardet notifications@github.com a écrit:

The problem is with CloudExplorer and I don't think it has something to do with SASS or the installation.

I suppose something change in the source since your last install, presumably in the KeyboardNav class if I read the error.

Any idea of what this could be @lexoyo?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/silexlabs/Silex/issues/820#issuecomment-427517931

jotakar commented 6 years ago

Then there are four issues, at least: debug.js module, CloudExplorer, KeyboardNav and the 404 error downloading SASS ??

JbIPS commented 6 years ago

Actually, I think there is only one :

lexoyo commented 6 years ago

Absolutely @JbIPS I can't take a look at this now. I would probably start by compiling cloud explorer on its own first

jotakar commented 6 years ago

I've found two possibles errors KeyboardNav now declare render as static but is not called properly, i fdeclared no sttic this error dissapears getServices in App.jsx is now declared as static but is not called propery, so throw an error getServices not declared. I've stopped here. I hope this could be a bit of help.

lexoyo commented 6 years ago

good catch thx i believe it comes from this PR https://github.com/silexlabs/CloudExplorer2/pull/75

jotakar commented 6 years ago

Cheers! A quick research with good results! :) About pull requests and so. I think that it would be a good idea to ask for documented code when somebody make a pullrequest. Sometime pull requests are just code, and it's dificult to averiguate why and how it works. This app is too complex with a lot of dependencies and external modules, and it's very dificult if we want to make any modification. For example, now I'm tring to see how the ftp logging works, in order to use a popup window for form logging instead a new page like now. I need to find how cloud-explorer incorporate unifile (I think) and then launch the window for logging. Without documentation it's a hard work. To document the project would be a good idea.

lexoyo commented 6 years ago

+1 for more documented code for the popup / popin thing, it is a good idea for ftp and webdav but for third party services like github or dropbox we should keep a popup, so that the user can see that he is entering his creds on the third party website and not on our website

jotakar commented 6 years ago

Then th program must choose among two options, it'll depend on the service used: ftp/github, dropbox... Anyway there is a post open about this question in CloudExplorer, (posted on Dec'17). O'll try to find a solution.

lexoyo commented 6 years ago

I think that you should add a property like "isOauth" in the unifile services, so that the front end knows if it should open a popup or a popin