Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osmosis.js not found and osmosis.get is not a function #31

Closed
dsinghvi opened this issue Jun 9, 2015 · 2 comments
Closed

osmosis.js not found and osmosis.get is not a function #31

dsinghvi opened this issue Jun 9, 2015 · 2 comments

Comments

@dsinghvi
Copy link

dsinghvi commented Jun 9, 2015

Hi, I am trying to use node-osmosis in a script for an html file.
I have created a directory and executed the command: npm install osmosis.
Next, I copy-pasted the craigs list script given and am attempting to see if that works.
The first error I got was that "require is not defined".
I proceeded to download require js, and used the command: npm install requirejs.
Then in my html file before I ran the craigs list script, I loaded the require.js.
Now, my HTML code looks like the following:
image
(testing.js is just the craigs list code)
The errors I am getting now include

  1. Osmosis.js not found
  2. osmosis.get is not a function

Do you have any recommendations about what to do ?

@dsinghvi dsinghvi changed the title Trying to use node-osmosis in an html/javascript file combo osmosis.js not found and osmosis.get is not a function Jun 9, 2015
@rchipka
Copy link
Owner

rchipka commented Jun 18, 2015

Looks like you are trying to run Osmosis in a browser. Unfortunately, Osmosis is only intended to run on NodeJS and currently has no plans to support use in a browser.

@rchipka rchipka closed this as completed Jun 18, 2015
@dsinghvi
Copy link
Author

Ah, I see. Thanks a lot for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants