You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
(testing.js is just the craigs list code)
The errors I am getting now include
Osmosis.js not found
osmosis.get is not a function
Do you have any recommendations about what to do ?
The text was updated successfully, but these errors were encountered:
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
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.
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:
(testing.js is just the craigs list code)
The errors I am getting now include
Do you have any recommendations about what to do ?
The text was updated successfully, but these errors were encountered: