shadow-cljs

lastCallbackNode is not a function

夙愿已清 提交于 2021-01-29 09:22:13
问题 I've imported the farmer-motion library using shadow-cljs. The framer motion library has the custom react component div.motion. It's used as follows: https://www.framer.com/api/motion/examples/#animation : import { motion } from "framer-motion" export const MyComponent = () => ( <motion.div animate={{ scale: 2 }} transition={{ duration: 0.5 }} /> ) I'm using reagent to render the div.motion component: (ns myapp.foo (:require ;; shadow-cljs import [framer-motion :refer (motion MagicMotion

How to connect a ClojureScript node REPL to my :node-library shadow-cljs project?

眉间皱痕 提交于 2019-12-24 02:59:18
问题 Context I am building a Node.js library with ClojureScript and shadow-cljs. All development is done with ClojureScript but the build artefact is a NPM package. Example: (ns com.example.answer) (defn answer [] 42) build... release... then const answer = require('answer'); answer(); //=> 42 NB: I recently contributed the details of my build setup to this post. My entire development environment is in a Docker container and I am using the "Visual Studio Code Remote - Container" extension.