Git Product home page Git Product logo

Comments (7)

gregturn avatar gregturn commented on July 17, 2024

In your screenshot, I see neither a package.json file nor a webpack.config.js file (as you can see here).

package.json is required to know what modules to load (including webpack). The webpack.config.js is needed to tell webpack how to build and assemble bunde.js.

from tut-react-and-spring-data-rest.

AustinSong avatar AustinSong commented on July 17, 2024

Thanks for the quick advice.
I've since added all of the files within the static folder on the github page.

My errors have disappeared after adding tags to my pom file.

I copied the contents from the github repository and put them into my project.
I'm still receiving a Not found resource. Here are the screenshots of the updated project view and error message

screen shot 2016-02-18 at 6 31 11 pm

screen shot 2016-02-18 at 6 31 34 pm

from tut-react-and-spring-data-rest.

AustinSong avatar AustinSong commented on July 17, 2024

So I've managed to create the build. I've got a new error when loading.
Here is a screen.

screen shot 2016-02-18 at 10 11 31 pm

from tut-react-and-spring-data-rest.

AustinSong avatar AustinSong commented on July 17, 2024

I was able to get the table to show up now. I realized that the class being extended in app.js was React.component rather than React.Component.

I also had execute webpack on the static folder via the terminal to update the app.js.

Is there a better way for the project to update the js files from the static folder other than having to do webpack when I need to update?

from tut-react-and-spring-data-rest.

gregturn avatar gregturn commented on July 17, 2024

Here is webpack's command to remain in watch mode, where it recompiles and hot-reloads as you make edits => https://github.com/spring-guides/tut-react-and-spring-data-rest/blob/master/basic/src/main/resources/static/package.json#L30

I have it wrapped as an npm task, so I don't have to remember the whole command.

It's important to understand that Spring Boot's DevTools LiveReload feature doesn't monitor resource updates to refresh the app context, so you'll probably have to refresh the browser.

from tut-react-and-spring-data-rest.

gregturn avatar gregturn commented on July 17, 2024

Seeing you having resolved this issue, can we close it?

from tut-react-and-spring-data-rest.

AustinSong avatar AustinSong commented on July 17, 2024

Yes thank you so much.

from tut-react-and-spring-data-rest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.