-
-
Notifications
You must be signed in to change notification settings - Fork 37
ESM TypeError: Cannot read properties of undefined (reading 'minLength') #54
Comments
Temporary solution:
|
Or temporary solution for yarn users add to your package.json "resolutions": {
"ow": "0.27.0"
} |
Did the linked PR actually fix this issue? import ow from 'ow';
ow.string.minLength(1); Still resulted in |
no it didn't, but it took some time for a real fix @Gamer025 sorry about that |
Is there any solution for this at the moment? I'm getting the same error on a fresh build with Got plenty of other bits to be working on in the meantime if the fix for this is still a way off 🙂 |
there is a pr to fix this linked above, in the meantime you can force install an older builders version with |
Why was this issue closed when the issue itself hasn't been resolved? I was about to create a new issue for it before I looked at pull requests where #56 linked here. |
The author of the first PR attempting to fix this issue (#55) used a closing keyword which is triggered on merge into the main branch. |
Ah that makes sense, thanks for reopening it. |
If this helps at all, even after having 'ow' downgraded to import { SlashCommandBuilder } from '@discordjs/builders' When using 'require', the error doesn't appear. const { SlashCommandBuilder } = require('@discordjs/builders') |
There is no |
#58 Fixed the bug for me! Now the discordjs package needs to be updated to use 0.9.0 instead of 0.8.2! |
Issue description
This issue is caused by ow, as the code below shows.
This issue did not occur on v0.7.x.
edit: sindresorhus/ow#215
Code sample
@discordjs/builders version
0.8.1
Node.js version
16.13.0
Operating system
Windows
Priority this issue should have
High (immediate attention needed)
The text was updated successfully, but these errors were encountered: