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
I then created a component inside the app that makes use of preval.macro. And it worked.
Now I'm trying to make that component a bit more general, and I'd like to move it to a standalone package that other apps can add as dependency.
But there the macro fails with an error stating that the macro comes from undefined.
I commented on a babel-plugin-macros issue, thinking that I've encountered a similar problem. There I already received much help, though ending in that's not something that can be done.
I'd like to know if there's anything else I can try / edit (without ejecting tough) to accomplish my objective.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
From a SO question about How to show build datetime on my react web app using create-react-app? I found that
preval.macro
can be used to generate a fixed string during app build time.I then created a component inside the app that makes use of
preval.macro
. And it worked.Now I'm trying to make that component a bit more general, and I'd like to move it to a standalone package that other apps can add as dependency.
But there the macro fails with an error stating that the macro comes from
undefined
.I commented on a babel-plugin-macros issue, thinking that I've encountered a similar problem. There I already received much help, though ending in that's not something that can be done.
I'd like to know if there's anything else I can try / edit (without ejecting tough) to accomplish my objective.
Beta Was this translation helpful? Give feedback.
All reactions