Frozn
Frozn
SIASapphire - Imagine a framework
Created by Frozn on 5/2/2023 in #sapphire-support
Issues importing from shapeshift
I'm trying to use StringValidator from @sapphire/shapeshift but it keeps throwing this error when i start up the bot:
import { StringValidator } from '@sapphire/shapeshift';
^^^^^^^^^^^^^^^
SyntaxError: The requested module '@sapphire/shapeshift' does not provide an export named 'StringValidator'
import { StringValidator } from '@sapphire/shapeshift';
^^^^^^^^^^^^^^^
SyntaxError: The requested module '@sapphire/shapeshift' does not provide an export named 'StringValidator'
Code:
import { StringValidator } from '@sapphire/shapeshift';
const validator = new StringValidator().url({ allowedDomains: ['youtube.com'] }).run(url);
import { StringValidator } from '@sapphire/shapeshift';
const validator = new StringValidator().url({ allowedDomains: ['youtube.com'] }).run(url);
5 replies