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.

This seems to be a pre-built javascript file

See original GitHub issue

I am using reactJS with webpack. And trying to import your library have the following warning

./~/centrifuge/centrifuge.js Critical dependencies: 1:441-448 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results. @ ./~/centrifuge/centrifuge.js 1:441-448

This how I import the library
import centrifuge from 'centrifuge';

Any thoughts how can it be used in es6 style way?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
FZambiacommented, Aug 1, 2016

Speaking about warning issue. Looks like setting “main” to “src/centrifuge.js” in package.json file solves it. But I am not sure about this solution backwards compatibility yet

0reactions
FZambiacommented, Aug 2, 2016

Just released version 1.3.7 with warning and SockJS dependency fixes - see example in changelog

Read more comments on GitHub >

github_iconTop Results From Across the Web

This seems to be a pre-built javascript file. #1617 - GitHub
I understand thats its better to let webpack compile the source files as opposed to the distribution files, but how is this supposed...
Read more >
How to ignore "Seems to be a pre-built javascript file...Try to ...
Fix this by adding the path to the prebuilt module into your webpack config under module: module: { // .
Read more >
Gulp warning: "This seems to be a pre-built javascript file..."
Hi, Gulp throws me a warning: Copy Code WARNING in ./resources/assets/js/plugins/sweetalert/sweetalert-dev.js Critical dependencies: 4:115-122 This seems to ...
Read more >
How to use highlight.js
first, find all the div.code blocks document. ... A prebuilt version of Highlight.js bundled with many common languages is hosted by several popular...
Read more >
Embedder Documentation - Developers - Dropbox.com
The Embedder is a pre-built component; a small, built-by-Dropbox JavaScript library that allows your users to view and interact with Dropbox files and ......
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