Daemonite / material

Material Design for Bootstrap 4
http://daemonite.github.io/material/
MIT License
3.2k stars 720 forks source link

customizing material turned sour #206

Open wdiechmann opened 5 years ago

wdiechmann commented 5 years ago

I started out with the precompiled version - and realizing how well that worked for me, I admit to the 7 Deadly Sins, well perhaps not all of them on this account but certainly greed :(

So - I set out to use the source files; and high on life (and caffeine I guess) I witnessed more success; life was perfect!

My Rails project (5.2) was not set up for Webpack but I quickly learned how to add that - only to realize that the future had spread to important parts of the library - and no default loader would touch this :(

Not easily intimidated by this attitude I fought Webpack/Daemonite-Material into the wee hours but when I started to get webpacker errors like the one below - after having successfully fixed navdrawer and trying my luck with pickadate - I decided to let it go

Now I'm left wondering where I took the wrong turn 👶

The (S)CSS part worked like a charm - almost to good in fact 👍

But Webpack obviously is not or the weak at heart -

01:27:42 webpacker.1 | Version: webpack 3.12.0
01:27:42 webpacker.1 | Time: 558ms
01:27:42 webpacker.1 |                                    Asset       Size  Chunks                    Chunk Names
01:27:42 webpacker.1 |         material-68601106432a74e15c29.js     738 kB       0  [emitted]  [big]  material
01:27:42 webpacker.1 |      application-62e31ce14b5e22c1884e.js     371 kB       1             [big]  application
01:27:42 webpacker.1 |     hello_coffee-36587fc16523d1fca0e8.js     371 kB       2             [big]  hello_coffee
01:27:42 webpacker.1 |  application-62e31ce14b5e22c1884e.js.map     379 kB       1                    application
01:27:42 webpacker.1 | hello_coffee-36587fc16523d1fca0e8.js.map     379 kB       2                    hello_coffee
01:27:42 webpacker.1 |     material-68601106432a74e15c29.js.map     828 kB       0  [emitted]         material
01:27:42 webpacker.1 |                            manifest.json  414 bytes          [emitted]
01:27:42 webpacker.1 |    [5] (webpack)-dev-server/client?http://localhost:3035 7.93 kB {0} {1} {2}
01:27:42 webpacker.1 |    [6] ./node_modules/url/url.js 23.1 kB {0} {1} {2}
01:27:42 webpacker.1 |   [12] ./node_modules/strip-ansi/index.js 161 bytes {0} {1} {2}
01:27:42 webpacker.1 |   [14] ./node_modules/loglevel/lib/loglevel.js 8.64 kB {0} {1} {2}
01:27:42 webpacker.1 |   [15] (webpack)-dev-server/client/socket.js 1.08 kB {0} {1} {2}
01:27:42 webpacker.1 |   [17] (webpack)-dev-server/client/overlay.js 3.67 kB {0} {1} {2}
01:27:42 webpacker.1 |   [22] (webpack)/hot nonrecursive ^\.\/log$ 170 bytes {0} {1} {2} [built]
01:27:42 webpacker.1 |   [24] (webpack)/hot/emitter.js 74 bytes {0} {1} {2}
01:27:42 webpacker.1 |   [27] multi (webpack)-dev-server/client?http://localhost:3035 ./app/javascript/packs/application.js 40 bytes {1}
01:27:42 webpacker.1 |   [28] ./app/javascript/packs/application.js 515 bytes {1}
01:27:42 webpacker.1 |   [29] multi (webpack)-dev-server/client?http://localhost:3035 ./app/javascript/packs/hello_coffee.coffee 40 bytes {2}
01:27:42 webpacker.1 |   [30] ./app/javascript/packs/hello_coffee.coffee 294 bytes {2} [built] [failed] [1 error]
01:27:42 webpacker.1 |   [31] multi (webpack)-dev-server/client?http://localhost:3035 ./app/javascript/packs/material.js 40 bytes {0}
01:27:42 webpacker.1 |   [32] ./app/javascript/packs/material.js 66 bytes {0}
01:27:42 webpacker.1 |   [33] ./node_modules/daemonite-material/assets/js/index.js 450 bytes {0}
01:27:42 webpacker.1 |     + 26 hidden modules
01:27:42 webpacker.1 |
01:27:42 webpacker.1 | ERROR in ./node_modules/pickadate/lib/picker.date.js
01:27:42 webpacker.1 | Module not found: Error: Can't resolve 'picker' in '/Users/walther/Projects/apps/dagbog/bog/node_modules/pickadate/lib'
01:27:42 webpacker.1 | resolve 'picker' in '/Users/walther/Projects/apps/dagbog/bog/node_modules/pickadate/lib'
01:27:42 webpacker.1 |   Parsed request is a module
01:27:42 webpacker.1 |   using description file: /Users/walther/Projects/apps/dagbog/bog/node_modules/pickadate/package.json (relative path: ./lib)
01:27:42 webpacker.1 |     Field 'browser' doesn't contain a valid alias configuration
01:27:42 webpacker.1 |   after using description file: /Users/walther/Projects/apps/dagbog/bog/node_modules/pickadate/package.json (relative path: ./lib)
01:27:42 webpacker.1 |     resolve as module
01:27:42 webpacker.1 |       looking for modules in /Users/walther/Projects/apps/dagbog/bog/app/javascript
01:27:42 webpacker.1 |         using description file: /Users/walther/Projects/apps/dagbog/bog/package.json (relative path: ./app/javascript)