figwheel-main

figwheel-main http://figwheel.org
2020-02-25T15:01:15.000800Z

I have something really weird going on in a project on one machine at least

Uncaught Error: Undefined nameToPath for moment
    at visitNode (base.js:1357)
    at visitNode (base.js:1355)
    at visitNode (base.js:1355)
    at visitNode (base.js:1355)
    at visitNode (base.js:1355)
    at Object.goog.writeScripts_ (base.js:1369)
    at Object.goog.require [as require_figwheel_backup_] (base.js:706)
    at (index):1

2020-02-25T15:01:47.001800Z

any idea what that could mean? funny thing is that this project works on another machine, but no amount of lein clean or even checking it out fresh in another directory makes it work

2020-02-25T15:02:29.003100Z

everything seems to be compiled correctly and I even get the cljs repl, but the page doesn't load at all because

Uncaught ReferenceError: your-project is not defined
    at (index):1

2020-02-25T15:02:47.003800Z

funny thing is also that the same commit works fine if I deploy it, so it's really juset a local problem

2020-02-25T15:02:56.004300Z

any idea what to look for maybe?

practicalli-john 2020-02-27T00:53:03.006300Z

It's almost always some cache somewhere... I had some very weird things happen because the browser cache didn't clear. Have you tried a different browser?

2020-02-27T14:53:10.006500Z

yeah I tried everything

2020-02-27T14:53:23.006700Z

different browsers, clearing all sort of cache

2020-02-27T14:53:39.006900Z

but if it actually works on my linux machine and in prod then I'm really puzzled

2020-02-25T15:11:16.004800Z

I see things like https://stackoverflow.com/questions/55341643/undefined-nametopath-when-using-clojurescripts-npm-deps that seem related but I don't have any npm-deps

2020-02-25T15:11:37.005500Z

the only thing from cljsjs is probably [antizer "0.3.1"]

just.sultanov 2020-02-28T08:34:26.007100Z

@andrea.crotti Hi! If you want you can try this library without shadow-cljs - https://github.com/just-sultanov/ant-design Unfortunately, I don’t have time to support antd v4.

just.sultanov 2020-02-28T08:37:23.007500Z

Or you can use https://github.com/cljsjs/packages/tree/master/antd directly