The error happens when it runs
rails server in a Ruby on Rails 6 application.
In the terminal:
npm install --save-dev @babel/plugin-proposal-private-property-in-object
npm install --save-dev @babel/plugin-proposal-private-property-in-object is used to install the Babel plugin
@babel/plugin-proposal-private-property-in-object as a development dependency in a Node.js project.
Here's what the
@babel/plugin-proposal-private-property-in-object plugin does and why you might use it:
- Private class properties
# symbol before the property name.
- Babel Plugin:
- Development Dependency
You install this plugin as a development dependency (
--save-dev) because it's primarily used during the development and build process, not at runtime. It's part of your build toolchain, and it helps ensure your code can be executed in a wider range of environments when you bundle and deploy your application.
Stop the server
In order to stop the
Rails Server, let's press the following command:
CTRL + C
Restart the server
Access a specific page
You've made it!
Let's become friends
I hope this article has been helpful to you. Please feel free to reach out if you have any questions. Your thoughts, suggestions, and corrections are more than welcome.
By the way, don't hesitate to drop your suggestions for new blog articles.
I look forward to seeing you next time.