This seems to be a pre-built javascript file
See original GitHub issueI 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:
- Created 8 years ago
- Reactions:3
- Comments:9 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 yetJust released version 1.3.7 with warning and SockJS dependency fixes - see example in changelog