#Hi there, Ive got another issue xd The bot doesnt want to import module inside the execute functio

1 messages · Page 1 of 1 (latest)

midnight vine
#

You should learn how imports works

#

You could use a dynamic import

valid veldt
#

How can I do that?

midnight vine
#

let x = await import(file_path)

valid veldt
# midnight vine `let x = await import(file_path)`

seems to be the solution I was searching for, but how can I implement it when the file at ../../Firestorm has the following content?

import textures from './textures';
import paths from './textures/paths';
import uses from './textures/uses';

export { textures, paths, uses };
valid veldt
#

oh nevermind, figured it out myself xd

#

thanks

midnight vine
#

👍

valid veldt
#

I'm starting to use TS xd

midnight vine
#

Just so you know: TS has nothing to do with importing ways