This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-23
Channels
- # announcements (5)
- # aws (9)
- # babashka (60)
- # beginners (561)
- # calva (8)
- # cider (17)
- # clj-kondo (1)
- # cljsrn (12)
- # clojure (36)
- # clojure-dev (3)
- # clojure-europe (3)
- # clojure-france (10)
- # clojure-greece (8)
- # clojure-italy (6)
- # clojure-spec (3)
- # clojure-uk (6)
- # clojurescript (30)
- # community-development (2)
- # conjure (15)
- # datascript (24)
- # figwheel-main (49)
- # fulcro (29)
- # helix (72)
- # off-topic (20)
- # pathom (7)
- # rum (7)
- # shadow-cljs (23)
- # spacemacs (6)
- # sql (8)
- # timbre (1)
- # xtdb (10)
that fills in :output-to
with the :output-in options, and fills in :final-output-to
with output-to + “_bundle.js”
Can't seem to figure it out.
yes trying to pull in an npm module
trying the command on the command line after your initial compile is a good way to figure out any glitches in your set up
ok. Not sure which command I should try from the command line. I am running from the command line: clj -m figwheel.main --build dev
oh maybe webpack from command line
ok fixed webpack a bit
still getting :bundle-cmd :none failed
Ok found an error with clj -m figwheel.main --build-once dev
my npm dep needed react in package.json. seems to be working now.
I see I don't need to make my own webpack.config.js
Ok I've made a lot of progress. Currently trying to figure out how to get figwheel to tell webpack to export React as a global on window, so rum can refer to it using js/React.
I cannot believe how good the figwheel docs are. Seriously, so good. So complete. A pleasure to read. Almost like they were written by a Fun driven developer or something.
Ok I am up and running. Thanks a million @bhauman
Yeah, I had a small one I started a few months ago.
absolutely. 3rd party react hooks ecosystem is spread out before us like a buffet.
also another thing you can do is run webpack on the command line with the -w flag after figwheel has launched
does figwheel create a webpack.config.js?
gotcha
I'm using firebase importing the npm package, this is what I have in index.js
import * as firebase from 'firebase/app';
import "firebase/analytics";
import 'firebase/auth';
import 'firebase/database';
window["firebase"] = firebase;
When I run the following code in advanced compilation I get an error saying firebase.database
is not a function (actually YG.pi
is not a function because the names were minified)
(ns myapp.firebase
(:require
[firebase]
))
(def firebase-db
(do
(when (= 0 (some-> firebase .-apps .-length))
(-> firebase (.initializeApp firebase-config)))
(-> firebase (.database))))
I'm thinking it might be because of the way I'm importing firebase. Any suggestions?@jpsoares106 yeah this is an externs problem
ha did you just push a change to the 0.2.6 snapshot, bruce? Seemed to fix a console warning about :after-hook
not being found :thinking_face: 🎉