@juhoteperi thanks 🙂
I thought we weren’t supposed to use this style of import?
["react-highlight.js" :as react-highlightjs]
Also been thinking about looking at react-native specifically the microsoft stuff, would that be a good stress test of the new figwheel-main webpack?the actual library is called react-highligh.js
I think you are importing the wrong one
I mean npm installing the wrong one
This is super confusing, as this exists too:
(https://www.npmjs.com/package/react-highlight)
I’m not importing anything specifically, just used :npm-deps true
yes it is confusing
It auto added in the declared deps from the library
I just looked at lein deps :tree
and excluded the cljsjs/react-highlight
dep because I remembered that happened the last time…
oh yeah they are requiring the right one
isn’t re-frame10x a dev time tool?
@folcon if so you don’t have to exclude cljsjs/react-highlight
@folcon I’m planning on adding support for react-native next month
but until then you can use react-native-figwheel-bridge
with figwheel-main
Yep, I stopped when it broke, but I thought I’d report it just in case it was a symptom of an underlying issue, I mean in this case it’s ok it’s not a prod dep, but it could easily have been =)…
yeah it could be the caching issue, would have to track it down
Would that work with this: https://microsoft.github.io/react-native-windows/ The main targets I care about are OS’s not mobiles…
I don’t see why it wouldn’t
but there is a steepish learning curve to all of this as usual
reading the docs for react-native-figwheel-bridge is a good introduction
That’s fine, I’m happy to be the user that hits walls 😉…
Pave the way for other people to build cool things in the ecosystem ^_^…
react-native-figwheel-bridge doesn’t currently let you require images/pngs etc in the clojurescript codebase
Loving what’s happening with the tooling btw, it’s great to see all the stuff that’s been added in!
oh thanks
what platform are you on?
So is there no way to load resources then?
there is a way you’ll see when you read the docs
I’ve got a windows machine and a macos, I primarily dev in macos, but I can test against both…
@folcon that’s cool, do you mind if I hit you up for some testing on windows sometime?
I just did a commit that handles the fact that npx is npx.cmd
on windows
No problem =)… Happy to help as and when I have time, just drop me a message and I’ll respond when I can 😉
no need to test that yet
but also the new SSL stuff would be nice to get my certifiable library working on windows
My pet project is doing some gamedev, so making sure this stuff just works with media is something I really want to see =)…
cool well the work is scheduled to start in a couple of weeks to get react-native integrated including support for images
Btw, this is the error if I do [day8.re-frame/re-frame-10x "0.6.5" :exclusions [cljsjs/react-highlight]]
:
[Figwheel] Failed to compile build dev in 145.833 seconds.
[Figwheel:WARNING] Compile Exception resources/public/js/compiled/out/day8/re_frame_10x/view/components.cljs line:11 column:15
No such namespace: react-highlight.js, could not locate react_highlight/js.cljs, react_highlight/js.cljc, or JavaScript source providing "react-highlight.js" (Please check that namespaces with dashes use underscores in the ClojureScript file name) in file resources/public/js/compiled/out/day8/re_frame_10x/view/components.cljs
Which reminds me I was performing clean manually in my run script, now need to see if I can just call the figwheel's clean
…
With regards to caching at the moment I delete all of my node_modules as well as my complied code before running npm install
and then compiling from scratch.
I absolutely want to ensure reproducible builds while this is being worked on.
Not sure where else this could be caching unless I’ve gotten everything?@folcon yeah this may be a bug in cljs
you’ve found a few already