oauthinaction / oauth-in-action-code

Source code for OAuth 2 in Action
https://www.manning.com/books/oauth-2-in-action
Other
714 stars 535 forks source link

Issue/1/view path error #50

Open jhachtel opened 2 years ago

jhachtel commented 2 years ago

macOS would not recognize the view path as given.

I added a ternary assignment for the view path variable to add the prefix ./ if the OS is Darwin.

jricher commented 2 years ago

If this is the case, I imagine that it would need to be applied to all of the examples, right? Also, this code was originally developed on a MacOS system, so this must be something weird with a newer version of Node. What version are you running against? Thanks!

jhachtel commented 2 years ago

Node: v16.13.2 I'm on a 14" MacBook Pro too. Not sure if Apple silicon would make a difference. Good point about all the examples.