question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not be able to use path.join

See original GitHub issue

After long time debugging, I found using path.join will cause the app to crash. I also see the limitation has:

Any code depends on Function.prototype.toString function will break

Is this the root cause of not be able to use path.join? If so, how come the app works fine on Windows but not on Mac. I keep getting undefined is not a function wherever I used path.join on Mac.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
JNLeicommented, Dec 9, 2022

Use Node v14+ to build should solve the issue @OsamaAbbas

0reactions
OsamaAbbascommented, Dec 11, 2022

The only thing that I may mention is that you have to build your app for each platform separately. The binaries that were built for Intel won’t work for M1 and vice versa.

Good luck with your project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

path.join does not work? - node.js
I want to read from a path and I wrote two different codes.The first code does not work but the second code works...
Read more >
Node.js path.join() Method
Definition and Usage. The path. join() method joins the specified path segments into one path. You can specify as many path segments as...
Read more >
Node.js | path.join() Method
The path.join() method is used to join a number of path-segments using the platform-specific delimiter to form a single path.
Read more >
Path.Combine Method (System.IO)
This method assumes that the first argument is an absolute path and that the following argument or arguments are relative paths. If this...
Read more >
Path | Node.js v19.3.0 Documentation
path.join([...paths]) # ... The path.join() method joins all given path segments together using the platform-specific separator as a delimiter, then normalizes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found