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
lxsmnsyc
lxsmnsyc2y ago
os is a Node module, and it doesn't exist on clients may I ask what you're trying to do?
musiclover
musicloverOP2y ago
How can I use Node module in solid start?
lxsmnsyc
lxsmnsyc2y ago
not if you intend to use it on client-side too the same error would happen in React, Vue, etc
Want results from more Discord servers?
Add your server