spring-attic / tut-react-and-spring-data-rest

React.js and Spring Data REST :: A tutorial based on the 5-part blog series by Greg Turnquist
https://spring.io/guides/tutorials/react-and-spring-data-rest
882 stars 1.58k forks source link

react 0.13.3 while the latest production ready react version is 15.3.2 #26

Closed kopax closed 8 years ago

kopax commented 8 years ago

According to #6, this should be the official and maintained version.

The latest react version of this tutorial is on react 0.13.3 while the latest production ready react version is 15.3.2.

Updating in this project the file package.json the version will result in these client error :


2016-09-23 13:47:07.939 http://localhost:8080/bower_components/react/JSXTransformer.js Failed to load resource: the server responded with a status of 404 (Not Found)
2016-09-23 13:47:07.943 require.js:140 Uncaught Error: Script error for "JSXTransformer/JSXTransformer"
http://requirejs.org/docs/errors.html#scripterror
2016-09-23 13:47:11.117 require.js:1952 GET http://localhost:8080/bower_components/react/JSXTransformer.js req.load @ require.js:1952context.load @ require.js:1679Module.load @ require.js:829Module.fetch @ require.js:819Module.check @ require.js:851Module.enable @ require.js:1177context.enable @ require.js:1550(anonymous function) @ require.js:1162(anonymous function) @ require.js:131each @ require.js:56Module.enable @ require.js:1114Module.init @ require.js:783(anonymous function) @ require.js:1453
2016-09-23 13:47:11.120 require.js:165 Uncaught Error: Script error for "JSXTransformer/JSXTransformer"
http://requirejs.org/docs/errors.html#scripterrormakeError @ require.js:165context.onScriptError @ require.js:1732
2016-09-23 13:47:18.129 require.js:165 Uncaught Error: Load timeout for modules: jsx/jsx!app_unnormalized2,jsx/jsx!app
http://requirejs.org/docs/errors.html#timeoutmakeError @ require.js:165checkLoaded @ require.js:693(anonymous function) @ require.js:714

Is there a proper to upgrade this ?

gregturn commented 8 years ago

Resolved via https://github.com/spring-guides/tut-react-and-spring-data-rest/commit/10b5db5d70bb6bd3a80cf5001b1c5b17f670bd43

kopax commented 8 years ago

I still have some issue after executing the update:

app.js:262 Uncaught TypeError: React.findDOMNode is not a function

When trying to update an entry in the project /workspace/github.com/spring-guides/tut-react-and-spring-data-rest/events

app.js:4 Uncaught Error: Cannot find module "react-dom"webpackMissingModule @ app.js:4(anonymous function) @ app.js:4__webpack_require__ @ bootstrap 8dc1bd7b244a030b288e:19(anonymous function) @ bootstrap 8dc1bd7b244a030b288e:39(anonymous function) @ bootstrap 8dc1bd7b244a030b288e:39

Just after login using greg:turnquist in the project /workspace/github.com/spring-guides/tut-react-and-spring-data-rest/security

I've created a PR#26 to complete your commit, thanks!