You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project comes with a app.use('/api/things', require('./api/thing')); route but also inserts one when generating the thing endpoint on initial creation. This problem isn't apparent until the generated route is different than the one that was already included.
Which brings us to our next problem:
We're using the path module to find the relative path from the routes.js and socketio.js to the required file. However the path modules is using windows style slashes as the route is being generated on a windows machine.
Since the generated route is different than the included one, it actually gets added; where as normally it would see it as a duplicate and skip the insertion.
@stuarthallows I've submitted two patches (#1206, #1214) to the canary branch3.0.0-rc5 that should address the issues here. Would you mind testing those and confirm whether or not they do indeed solve your issues?
I ran the generator taking all defaults except for selecting LESS rather than SASS. There are two problems with the generated code.
In
routes.js
the routes generated are;and in
socketio.js
the sockets registered are;That is two thing entries, one with the slash reversed.
I'm running Windows 10, generator v3.0.0-rc4, npm 2.7.4 and node v0.12.2. I've tried cleaning all caches and reinstalling the generator.
The text was updated successfully, but these errors were encountered: