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

Uncaught TypeError #145

Open
jolyonralph opened this issue Dec 20, 2020 · 0 comments
Open

Uncaught TypeError #145

jolyonralph opened this issue Dec 20, 2020 · 0 comments

Comments

@jolyonralph
Copy link

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!

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

1 participant