Bitcoin Forum
February 21, 2026, 09:19:44 PM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Problem building browser version for bitcore-lib.js  (Read 181 times)
Anonymous Kid (OP)
Member
**
Offline Offline

Activity: 183
Merit: 25


View Profile
May 04, 2018, 07:21:36 PM
 #1

I am asking here as a last resort...
No one has responded to the issue I opened on the github or on their forum xD

When I run: bower install bitcore-lib
I get this error: bower invalid-meta  The "main" field cannot contain minified files

I need to create bitcore-lib.min.js file so I can use in a browser.
Has anyone had this issue? How to solve it?

Thanks Smiley)
Heisenberg_Hunter
Legendary
*
Offline Offline

Activity: 1605
Merit: 1281


Heisenberg Design Services


View Profile WWW
May 17, 2018, 04:32:22 PM
 #2

If you would have read the bower specifications clearly, you could have easily found the error which you had done. In bower specs it's stated that, you need to use the files unminified. Here are some important specs for bower which I found

Quote
Use source files with module exports and imports over pre-built distribution files.
Do not include minified files.
Do not include assets files like images, fonts, audio, or video
Filenames should not be versioned (Bad: package.1.1.0.js; Good: package.js).
Globs like js/*.js are not allowed.

Hence, you should not include minified files. If doing so will result in this error.

Some possible solutions to your problem may be :

1. You should not minify the files.
2. Renaming the .min.js  Huh Grin (I am not pretty sure about this)
3. Your bitcore-lib.js without being minified can resolve your problem.


▄██████████████████████████████████████████████████████████████████████████████████████████████▄
████████▀▀▀▀█████████▀▀    ▀▀▀████              █
          ▀▀████              █               █
███████      ██████▀           ▀██              █
             ▀██              █               █
██████        ████     ▄███▄     █    ███████████
     ████▄    ██    ████████████████     ██████
█████    ▄▄    ███     █████▄▄▄▄▄█    ███████████
     ████▀    ██    ████████████████     ██████
████   ▄████▄  ▀██     ███████████            ███
             ▄██            ████████     ██████
████  ████████  ██     ███████████            ███
              ▀█            ████████     ██████
███   ▀██████▀   █     █████▀▀▀▀▀█    ███████████
     █████     █    ████████████████     ██████
██▀      ██      ▀     ▀███▀     █    ███████████
     ████▀     █    ████████████████     ██████
██    ▄██████▄    █▄            ▄█              █
              ▄█              ██████     ██████
█     ████████     ██▄        ▄███              █
           ▄▄███              ██████     ██████
▀██████████████████████████████████████████████████████████████████████████████████████████████▀
.

  ▄██████████▄
  ████████████  ▄▄▄
  █  ██  ██  █   █
  █  ██  ██  █▄▄▄█
  █  ██  ██  █▀▀
  ▀▀▀▀▀▀▀▀▀▀▀▀
 ▄▄▄▄▄▄▄▄▄▄▄▄▄▄
████████████████
 ▀▀▀▀▀▀▀▀▀▀▀▀▀▀

  Slots 
    FREE RAINS
.EVERY 30 MINS.
.

  ▄▄▄▄▄▄▄▄▄▄▄
▄█████████████▄
     █████
███████████████
     █████
▄▄▄▄▄█████▄▄▄▄▄
 ▀███████████▀
   ▀▀▀▀█▀▀▀▀
    ▄▄▄█▄▄▄

Live Games
300K
MONTHLY   
RACE
50K
WORTH OF   
CHALLENGES
.REGISTER >.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!