Open badfiles opened 5 years ago
what are your grunt / npm versions? Do you have already a more recent version of react installed?
npm v3.10.10
The grunt command line interface (v1.3.2)
npm install
gives warnings
npm WARN react-redux@6.0.0 requires a peer of react@^16.4.0-0 but none was installed.
npm WARN react-infinite@0.13.0 requires a peer of react@^16.2.0 but none was installed.
npm WARN react-infinite@0.13.0 requires a peer of react-dom@^16.2.0 but none was installed.
npm WARN react-textfit@0.1.9 requires a peer of react@^0.14.0 but none was installed.
npm WARN react-textfit@0.1.9 requires a peer of react-dom@^0.14.0 but none was installed.
npm WARN react-dom@15.6.2 requires a peer of react@^15.6.2 but none was installed.
npm WARN enzyme-adapter-react-16@1.1.1 requires a peer of enzyme@^3.0.0 but none was installed.
npm WARN enzyme-adapter-react-16@1.1.1 requires a peer of react@^16.0.0-0 but none was installed.
npm WARN enzyme-adapter-react-16@1.1.1 requires a peer of react-dom@^16.0.0-0 but none was installed.
npm WARN react-reconciler@0.7.0 requires a peer of react@^16.0.0 but none was installed.
npm WARN react-test-renderer@16.7.0 requires a peer of react@^16.0.0 but none was installed.
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none was installed.
grunt says Done, without errors.
after cleaning pydio cache I have
VM16687:7 Failed Loading React, PydioReactUI : TypeError: _react.default.createContext is not a function
at Object.require.910.@babel/runtime/helpers/interopRequireDefault (bundle.prod.min.js:54)
at s (bundle.prod.min.js:1)
at eval (bundle.prod.min.js:1)
at Object.require.911../Context (bundle.prod.min.js:54)
at s (bundle.prod.min.js:1)
at eval (bundle.prod.min.js:1)
at Object.require.react-redux../components/Context (bundle.prod.min.js:62)
at s (bundle.prod.min.js:1)
at s (PydioHOCs.min.js:1)
at eval (PydioHOCs.min.js:1)
on the js console.
I've run into this same issue.
I'm also having same issue. Is there any solution for this issue?
mmmm, on our build machine, we have node --version 6.10.2 npm version 3.10.10 Can you check ?
I've different version of node and npm. So, I switched to version you mentioned and tried to run below command: npm install ( gui.ajax ) grunt
Cli Result:- Done, without errors.
But when tried to access pydio. I found it's not working and in console error mention below
Failed Loading React, PydioReactUI : TypeError: _react.default.createContext is not a function at Object.require.910.@babel/runtime/helpers/interopRequireDefault (/pydio/plugins/gui.ajax/res/build/bundle.prod.min.js:54) at s (/pydio/plugins/gui.ajax/res/build/bundle.prod.min.js:1) at eval (/pydio/plugins/gui.ajax/res/build/bundle.prod.min.js:1) at Object.require.911.../utils/Subscription (/pydio/plugins/gui.ajax/res/build/bundle.prod.min.js:54) at s (/pydio/plugins/gui.ajax/res/build/bundle.prod.min.js:1) at eval (/pydio/plugins/gui.ajax/res/build/bundle.prod.min.js:1) at Object.require.react-redux../components/Context (/pydio/plugins/gui.ajax/res/build/bundle.prod.min.js:62) at s (/pydio/plugins/gui.ajax/res/build/bundle.prod.min.js:1) at s (/pydio/plugins/gui.ajax/res/build/PydioHOCs.js:1) at eval (/pydio/plugins/gui.ajax/res/build/PydioHOCs.js:1)
I'm using this grunt js file https://github.com/pydio/cells-front/blob/master/plugins/gui.ajax/Gruntfile.js
I'm lost here : if you are trying to build the front for pydio 8, why do you use the Gruntfile from cells-front (which is deprecated by the way, as the front for pydio cells is in the main Cells repo). Why not using pydio-core/..../gui.ajax/Gruntfile.js??
Now, I'm using latest grunt file but this time again encounter same error with different trace
Failed Loading React, PydioReactUI : TypeError: _react.default.createContext is not a function at Object.require.910.@babel/runtime/helpers/interopRequireDefault (bundle.prod.min.js:54) at s (bundle.prod.min.js:1) at eval (bundle.prod.min.js:1) at Object.require.911.../utils/Subscription (bundle.prod.min.js:54) at s (bundle.prod.min.js:1) at eval (bundle.prod.min.js:1) at Object.require.react-redux../components/Context (bundle.prod.min.js:62) at s (bundle.prod.min.js:1) at s (_prelude.js:1) at eval (_prelude.js:1)
(anonymous) | @ | ResourcesManager.js:411 | |
---|---|---|---|
Promise.catch (async) | |||
loadClassesAndApply | @ | ResourcesManager.js:410 | |
(anonymous) | @ | Pydio:217 | |
init | @ | Pydio:231 | |
(anonymous) | @ | PydioBootstrap.js:198 | |
refreshContextVariablesAndInit | @ | PydioBootstrap.js:204 | |
loadBootConfig | @ | PydioBootstrap.js:102 | |
(anonymous) | @ | PydioBootstrap.js:82 | |
trigger | @ | doc-ready.js:51 | |
onReady | @ | doc-ready.js:43 |
Do you confirm your react version you are using?
In my case, react-redux library is creating issue because react-redux version higher or equal 6 is using different context API.
So, using react-redux version: 5.1.1 fix issue for me.
I hope this help someone.
ha ha ok so we should probably fix this in the json
Yes, please so it's not trouble other people. Thanks
It is impossible to build with
because it has unresolved dependencies
grunt runs successfully, but on execution I get