You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
Can be seeing running React example npx cherry run react/index.cljs
Seems to trip up when handling the local import (:require-macros ["./macros.mjs" :refer [$]])
[cherry] Running react/index.cljs
node:internal/errors:477
ErrorCaptureStackTrace(err);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received null
I'm not sure what the status of macros are, but I was giving them a go before trying to import a library that used them, and ran into above issue.
The text was updated successfully, but these errors were encountered:
Macros are currently running in SCI and should be required like so:
(:require-macros [macros :refer [$]])
The macros.cljc file should be in src/macros.cljc.
You may have gotten the example from an old version of cherry, where you could import .mjs but this is no longer the case since cherry works on both the JVM and JS so code has to run in the host and this is currently done using SCI.
Could you tell me where you found the other example, so we can update it?
Can be seeing running React example
npx cherry run react/index.cljs
Seems to trip up when handling the local import
(:require-macros ["./macros.mjs" :refer [$]])
I'm not sure what the status of macros are, but I was giving them a go before trying to import a library that used them, and ran into above issue.
The text was updated successfully, but these errors were encountered: