-
Notifications
You must be signed in to change notification settings - Fork 130
Remove redundant -r Node flags #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Thanks for the PR @PenguinDevs! This is indeed sort-of redundant (in that injecting the I think we could just change from |
|
After changing Which seems like two identical paths - except one is in backslashes, and the other uses forward slashes - are concatenated together? Again, this also only exclusively happens with the newer Next.js versions mentioned in #168 but isn't an issue with older ones. I am able to Whether I included the Although I understand that there might be a few scenarios where these options aren't passed to node, what I'm dealing with also appears to be a one-off scenario, too, with the latest Next.js version. On a side note, I've been finding this tool very handy in various situations and projects. Thank you so much for the Pro account for free use during my studies! |
|
@pimterry Can you please review the comment above. It would be great if we could get this fixed. |
I've done some testing - it seems that Next.js basically just doesn't support multiple That said, I think I've found a way to work around this without breaking the existing use cases (by detecting NODE_OPTIONS explicitly, to only set |
|
Thanks @pimterry, very much appreciated. I am unable to test this locally right now but will give it a go later this week when i get back to my personal laptop. Really appreciate your time on this. |
|
Hey Tim, Thanks for getting back at this with a solution. I tested it just now on Windows and noticed that the NODE_OPTIONS that already existed is using the UNIX forward-slash path instead of the Windows backslashes, because I was still seeing: I've made a push for it to substitute the \ with / instead. |
|
Just tested it on linux too with the Next.js project I was working on, and it's all good there as well. |
See #168.