Is there an example known to be properly working in a pnpm monorepo?
The bootstrapped examples I tried either from refine.new or create refine-app always end up with some kind of errors. (Mostly related to imports)
12 Replies
Hi @aerocosmic. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry to hear that you're having trouble with bootstrapping a refine application. The errors you're encountering might be due to a variety of factors. However, based on the information provided in the extracts, here are a few suggestions:
1. Check your environment: Refine works on any environment that can run React, including Vite, Next.js, Remix, and CRA(Legacy) etc. Make sure your environment is set up correctly to run React applications. source (https://refine.dev/docs/getting-started/quickstart)
2. Ensure correct installation: After bootstrapping your application, you should navigate to the project folder, install the dependencies, and then start your project. Here are the commands for that:
source (https://refine.dev/docs/getting-started/quickstart)
3. Check your import statements: Make sure you're importing the correct modules from the correct packages. For example, in a typical Refine application, you might see imports like these:
source (https://refine.dev/blog/building-react-admin-dashboard)
If you're still encountering issues, it might be helpful to look at the specific error messages you're getting and try to troubleshoot from there. If the errors are related to specific packages or modules, you might find it helpful to look at the documentation for those packages or modules.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@668817956217815043> kapa.ai is still learning and improving, please let us how it did by reacting below
wee-brownOP•2y ago
Suggested steps in 2. aren't for a pnpm install @kapa.ai
Hey @aerocosmic ,
We are experiencing some difficulties with pnpm. Could you please review this GitHub issue? https://github.com/refinedev/refine/issues/4439
GitHub
[BUG] Clean install doesn't compile: export 'TranslationContext' (i...
Describe the bug I just set up a refine project and tried to run it without changing anything but it does not compile. It rather shows this error: ERROR in ./node_modules/.pnpm/@refinedev+inference...
wee-brownOP•2y ago
https://refine.new/preview/65b3b4e9-7f64-4630-89df-a5fb6fad6a79
pnpm install
pnp run dev ==> Not working
pnpm install @refinedev/core@latest
pnpm run dev ==> Not working
pnpm store prune
Removed all cached metadata files
Removed 17939 files
Removed 80 packages
Preview - refine.new - Open-source enterprise application platform ...
Enterprise-grade, production-ready, and highly scalable web apps in minutes.
wee-brownOP•2y ago
@Omer Still not working
You can try with npm and yarn.
wee-brownOP•2y ago
Same exact code works with npm. (already tried)
But I can't use npm as all my work is in a pnpm monorepo.
Would pnpm run refine update help in any way?
Got it. You can wait for the GitHub issue to be fixed
wee-brownOP•2y ago
I had code based on an example working with pnpm in a monorepo at some point.
I had to tweak the .npmrc to accomodate another package. Doesn't work anymore.
Now even the example unmodified doesn't work anymore.
Any idea of the priority of the said issue on github in your pipeline?
Unfortunately, I can't provide a specific date. However, I believe we can resolve it within 3-4 weeks. If that doesn't work for you, you can apply to refine's Priority Support Program. You can find more information at https://refine.dev/pricing
wee-brownOP•2y ago
Thanks for the info.