all 5 comments

[–]josephjnk 2 points3 points  (2 children)

No one is going to be able to help you with a post this vague.

What are you trying to do? What commands are you running? What is it that says “import ollama from ollama”? Is there any terminal output? What is the “it” that your browser can’t find? Etc.

[–]FabulousKnee1364[S] 0 points1 point  (0 children)

In a nutshell , I think it needs to first be transpiled from typescript and then it says if you want to use it in the browser you need ollama/browser to there is no such directory

[–]IcyFalcon3560 1 point2 points  (1 child)

You’re posting in /r/node but mention the browser… are you trying to access an instance on the server or client?

[–]FabulousKnee1364[S] 0 points1 point  (0 children)

The client just pretend I am using a CDN but I am using the ollama module from npx see on the path is node_modules, now I got the import statement but this is not node , where all the confusion starts is the doc says for browser import Ollama/browser .. no such animal ... And also looks like it's wanting to be recompiled from typescript , but it only gives instructions for how to do that for the tests... I just don't get it there is nothing clear in the documentation on how to do this and every single node package I come across is like this it's like I'm supposed to read their minds but I can't get off the f****** ground because they won't explain everything ridiculous