Comments (7)
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.
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
from tut-react-and-spring-data-rest.
So I've managed to create the build. I've got a new error when loading.
Here is a screen.
from tut-react-and-spring-data-rest.
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.
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.
Seeing you having resolved this issue, can we close it?
from tut-react-and-spring-data-rest.
Yes thank you so much.
from tut-react-and-spring-data-rest.
Related Issues (20)
- Modification in app is not reflected. HOT 3
- Conditional lacks the require('when') to run in app.js HOT 1
- My own version does not display entities in the table
- Typo on basic/README.adoc HOT 1
- Can not run the project on Spring Source Tool Suite. HOT 4
- Part 1 tutorial does not mention how to bootstrap/inject React into the project HOT 6
- Part 2 - Hypermedia Controls - Paging from frontend react not working HOT 3
- When not defined / rest.js review
- Executing goal indstall-node-and-npm error HOT 2
- Missing Links HOT 1
- Subsequent update to first name creates a new 'firstName' row for an employee when first and last match.
- React isn't rendering employee list after logging in with manager account HOT 7
- Copied all source, but nothing rendering in browser HOT 1
- Cannot resolve plugin com.github.eirslett:frontend-maven-plugin:<unknown> HOT 2
- Update this project so that it doesn't lose its cool features but stays in line with new packages
- how to add axios in package.json HOT 1
- Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.1:install-node-and-npm (install node and npm) on project react-and-spring-data-rest-basic: Could not download Node.js:
- create dialogue component
- Source code does not render in browser
- If anybody needs this tutorial working with latest (March 2024) Spring Boot 3.2.3 and React 18.2.0... HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tut-react-and-spring-data-rest.