Author

Topic: Problem building browser version for bitcore-lib.js (Read 171 times)

legendary
Activity: 1584
Merit: 1280
Heisenberg Design Services
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.

member
Activity: 183
Merit: 25
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)
Jump to: