SolidStart - Can't use 'os' module.
I just created solid-start project,
Then I want to print 'os' homeDir in app.
But I see this error.
Error: Module "os" has been externalized for browser compatibility. Cannot access "os.homedir" in client code.
What's wrong? I'm using vite
3 Replies
os is a Node module, and it doesn't exist on clients
may I ask what you're trying to do?
How can I use Node module in solid start?
not if you intend to use it on client-side too
the same error would happen in React, Vue, etc