eggsy / discord-steam-verification

🧬 Check if a user owns the specific item(s) in their Steam library and give them roles! Discord bot and API.
MIT License
49 stars 9 forks source link

[BUG] The requested module 'fs' does not provide an export named 'cp' #24

Closed boopxyz closed 1 year ago

boopxyz commented 1 year ago

Getting this error when building or running dev:

import { cp } from "fs"; ^^ SyntaxError: The requested module 'fs' does not provide an export named 'cp'

eggsy commented 1 year ago

Hey!

That's weird, I tried building the app on a Windows machine and it worked just fine. Can I see your node --version? I think the cp method was added in v16.7.0 to Node.js, so make sure you're using that or a version higher than that one.