#JS importing?
20 messages · Page 1 of 1 (latest)
Excuse me,Could you tell me what do you want?
I want to import these classes
this ios how i imported them
!!help.img
⚠️ Please do not screenshot code as it causes a number of issues:
💠💠💠
- Ease of assistance - If someone wants to copy your code and correct it, they cannot. Making it easy for people to help you is in your best interests.
- Editorialising - It's common to try to make images small in size, which means you're likely to crop out code relevant to your issue.
- Accessibility - Wide images can be hard to read on mobile devices, and are impossible for screen readers.
- Legibility - You cannot read screenshots of code directly, instead you have to open them in an enlarged context.
- Bandwidth usage/clutter - Some of our members use metered connections, and it is wasteful for them to download images of text.
For a small amount of code, please use a codeblock (!!help.codeblocks), while an external repository (see !!help.code) is suitable for larger codebases.
Hello
what's the error?
Theres no errors or anything..
I think this will fix the code
let BayesianAlgo;
try {
BayesianAlgo = require("../../client/Algorithms/BayesianAlgo");
} catch (error) {
console.error(`Error loading BayesianAlgo:`, error);
}```
Please correct me if im wrong
?
"... because whenever i do this it returns error..."
bro, read
I said
I think this will fix the code
and it did fix ://
A try catch doesn't fix not working code it only catches the error
Hey i fixed it, but i ahve a new problem.. #1261533753176625183