Trying to use this for the first time for a javascript/d3.js based web application, I have installed via npm, and I have added
import ReconnectingWebSocket from 'reconnecting-websocket';
at the start of the script, but the code is failing with error:
Uncaught TypeError: Failed to resolve module specifier "reconnecting-websocket". Relative references must start with either "/", "./", or "../".
I am kind of new at the whole npm thing - was kind of hoping there would be an alternative option such as a .js file, you know, like the good old days :)
I'm sure this is something I'm doing wrong rather than a bug, but google is unhelpful in telling me what to do next, so I'm having to ask here - sorry!
Trying to use this for the first time for a javascript/d3.js based web application, I have installed via npm, and I have added
import ReconnectingWebSocket from 'reconnecting-websocket';
at the start of the script, but the code is failing with error:
Uncaught TypeError: Failed to resolve module specifier "reconnecting-websocket". Relative references must start with either "/", "./", or "../".
I am kind of new at the whole npm thing - was kind of hoping there would be an alternative option such as a .js file, you know, like the good old days :)
I'm sure this is something I'm doing wrong rather than a bug, but google is unhelpful in telling me what to do next, so I'm having to ask here - sorry!