I'm trying to create routing with SPA, it turns out that, even with this configuration, when accessing for example: "/products" I receive the following error:
"message": "ENOENT: no such file or directory, stat 'C:\\MYCOMPUTER\\public\\inventory\\products\\_index.ejs'"
About this error
If I access any of the routes, it causes an error, I believe it is a bad configuration of them. The error was caused by the "/products" route.
One detail in the error is that the configuration is looking for the route file in "/public" and not in "/views". The project configuration looks like this:
Ah! I see what is happening. You are using Node instead of PHP. That is the wrong way to add routes. I can recreate the issue here as well. Routes on a Node site should be set up using the routes panel, not the page/app routes.
App Routes should not be available in a Node project.
You probably used this tutorial .... it is for PHP and ASP only.