Vite monorepo #1861
Unanswered
Camilo-Camargo
asked this question in
Q&A
Vite monorepo
#1861
Replies: 1 comment
-
One solution is lazy loading with React.lazy and suspend, but I would like to know by why? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I would like to run react native skia using monorepo in this package https://github.com/learnOfficial/learn but the problem is when I include it in my ui package and tell vite rollup to externalize the package, when I import some components in my webapp package, the web browser tells me that CanvasKit2 doesn't exist, but if I print the window or global variable, the canvas is settled.
But the strangest thing is that when I created components in my webapp package where I included a canvaskit loader the webapp worked fine.
Beta Was this translation helpful? Give feedback.
All reactions