-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-components] Issues with new 0.12.1 update #1203
Comments
@ClashTheBunny Not sure what is going on here. It works for the components I am using, but could be that I missed an externs declaration for a component you are trying to use. This looks correct:
and after that you should be able to call |
I tried setting up another example and with just :requireing it from cljsjs, I get: Navigated to http://localhost:3449/cards.html
14:44:00.224 material-components.inc.js:90 Uncaught Error: Cannot find module "@material/base"
at Object.<anonymous> (material-components.inc.js:90)
at __webpack_require__ (material-components.inc.js:35)
at Object.defineProperty.value (material-components.inc.js:81)
at material-components.inc.js:84
at webpackUniversalModuleDefinition (material-components.inc.js:14)
at material-components.inc.js:15 Empty cache, hard reload, :optimizations :none. vanilla reagent-template project. |
Which version of ClojureScript are you using? Reagent template uses [org.clojure/clojurescript "1.9.562"]. |
@ClashTheBunny I tried it yesterday with the latest release. I used it with this repo |
Maybe the build messed up for clojars? ~/.m/r/c/m/0.12.1-0 ❯❯❯ unzip -l material-components-0.12.1-0.jar | grep js$
10244 06-02-17 04:36 cljsjs/material-components/development/material-components.inc.js
5981 06-02-17 04:35 cljsjs/material-components-web/common/material-components.ext.js
214 06-02-17 04:37 deps.cljs The previous version was 30x bigger: ~/.m/r/c/m/0.10.0-0 ❯❯❯ unzip -l material-components-0.10.0-0.jar | grep js$ master ◼
337094 05-04-17 10:35 cljsjs/material-components/development/material-components.inc.js
135102 05-04-17 10:36 cljsjs/material-components/production/material-components.min.inc.js
5981 05-04-17 10:33 cljsjs/material-components-web/common/material-components.ext.js
296 05-04-17 10:37 deps.cljs It also had both a min and a regular version. Did you just build it locally and then use that? The version in cljsjs seems to be fairly broken, and building it locally gives me a ton of errors: 2017-06-12T21_23_05_552Z-debug.log.txt Would this be related to material-components/material-components-web#771 ? Does CircleCI use Node 8 also? I think my computer just updated to 8 also. |
@ClashTheBunny Yes, I build it locally with |
Not sure what Circle CI uses. Do you have a link to the build log on Cirlce? |
CI setup uses Node 7.10: https://github.com/cljsjs/packages/blob/master/Dockerfile Logs are here: https://circleci.com/gh/cljsjs/packages/2125 and they show lots of problems like this:
|
The setup is now updated to use Node 8.1.0. Please test locally if problem was caused by Node 7.10, and if so, create PR to bump the build identifier for a new build. |
Hey @r0man,
I'm having trouble with 0.12.1. I'm guessing it has to do with:
material-components/material-components-web@e21ec90
and possibly with:
material-components/material-components-web#767
Do the externs need to be updated for mdc-base? Do I need to refer to mdc-base now instead of mdc? What is the way it should be used?
This is my traceback when I change from 0.10.0 to 0.12.1:
and
I'm including this with:
[cljsjs.material-components :as mdc]
The text was updated successfully, but these errors were encountered: