I set up a new project today and when I tried namespacing my scaffolds (yarn rw g scaffold admin/posts) this error popped up.
Failed to compile.
./src/Routes.js 1:11
Module parse failed: Unexpected token (1:11)
File was processed with these loaders:
* ../node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
> const Admin/EditPostPage = {
| name: "Admin/EditPostPage",
| loader: () => import("C:\\Users\\trist\\Code\\Hivemind\\web\\src\\pages\\Admin\\EditPostPage\\EditPostPage")
I used the exact data from the tutorial (admin/post) and the same schema so I could properly test it, and the bug was still there.
After removing the namespace the error went away. Thought I should bring this up incase it hasn’t been noticed yet.
I am getting the same issue. I am on Windows with V0.27.1 of redwood. I tried moving an existing set of scaffolded components and making the changes identified in the Routes.js comments, but get the same issue as Tris.