question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I use this library with webpack? Using this doens’t work…

import ReconnectingWebsocket from 'reconnecting-websocket'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jfuehnercommented, Nov 9, 2017

Sorry, I should of been more clear. The require syntax works with Webpack but, I want to use the import syntax for this library.

const ReconnectingWebSocket = require('reconnecting-websocket'); <-- this works

import ReconnectingWebsocket from 'reconnecting-websocket <-- this doesn’t

0reactions
pladariacommented, Nov 14, 2017

@jfuehner we are using this module with webpack since webpack 1.x without any issues. Please, create a repo with the steps to reproduce and then feel free to reopen this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >
webpack.js.org - GitHub
Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >
webpack module bundler
webpack is a module bundler. It packs CommonJs/AMD modules i. e. for the browser. Allows to split your codebase into multiple bundles, which...
Read more >
Webpack - Wikipedia
Webpack is a free and open-source module bundler for JavaScript. ... It is made primarily for JavaScript, but it can transform front-end assets...
Read more >
An intro to Webpack: what it is and how to use it
In brief, Webpack goes through your package and creates what it calls a dependency graph which consists of various modules which your webapp ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found