[GH-ISSUE #183] Error everytime I do pnpm dev #292

Closed
opened 2026-03-15 02:04:08 +03:00 by kerem · 6 comments
Owner

Originally created by @godstark82 on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/183

[plugin:vite:import-analysis] Failed to resolve entry for package "@maily-to/core". The package may have incorrect main/module/exports specified in its package.json.
C:/projects/redevs-projects/WSIVY-editors/maily.to/apps/web/app/components/email-editor.tsx:10:32
4 | import { cn } from "~/lib/classname";
5 | const Editor = lazy(async () => {
6 | const module = await import("@maily-to/core");
| ^
7 | return { default: module.Editor };
8 | });

This is the error I am getting everytime I do pnpm dev to run this

Originally created by @godstark82 on GitHub (Apr 9, 2025). Original GitHub issue: https://github.com/arikchakma/maily.to/issues/183 [plugin:vite:import-analysis] Failed to resolve entry for package "@maily-to/core". The package may have incorrect main/module/exports specified in its package.json. C:/projects/redevs-projects/WSIVY-editors/maily.to/apps/web/app/components/email-editor.tsx:10:32 4 | import { cn } from "~/lib/classname"; 5 | const Editor = lazy(async () => { 6 | const module = await import("@maily-to/core"); | ^ 7 | return { default: module.Editor }; 8 | }); This is the error I am getting everytime I do `pnpm dev` to run this
kerem closed this issue 2026-03-15 02:04:13 +03:00
Author
Owner

@arikchakma commented on GitHub (Apr 10, 2025):

I cannot reproduce it. Please create a simple reproduction and re-open.

<!-- gh-comment-id:2795122694 --> @arikchakma commented on GitHub (Apr 10, 2025): I cannot reproduce it. Please create a simple reproduction and re-open.
Author
Owner

@bernaferrari commented on GitHub (Apr 15, 2025):

I get the same.

  • Download project
  • pnpm i
  • pnpm dev
  • Click to open localhost
  • Exception:
    If I comment style.css, I get the exception at @maily-to/core like the guy did.
Image
<!-- gh-comment-id:2806977719 --> @bernaferrari commented on GitHub (Apr 15, 2025): I get the same. - Download project - `pnpm i` - `pnpm dev` - Click to open localhost - Exception: If I comment style.css, I get the exception at @maily-to/core like the guy did. <img width="1073" alt="Image" src="https://github.com/user-attachments/assets/1b191652-e8ba-44fb-b2aa-4d724e1a9016" />
Author
Owner

@PrimoUomo89 commented on GitHub (Apr 15, 2025):

I have the same issue with the same steps to reproduce:
git clone
pnpm install
pnpm dev
open browser
Cannot find module ... styles.css

It's as if it's not resolving the core package exports correctly.

<!-- gh-comment-id:2807266635 --> @PrimoUomo89 commented on GitHub (Apr 15, 2025): I have the same issue with the same steps to reproduce: git clone pnpm install pnpm dev open browser Cannot find module ... styles.css It's as if it's not resolving the core package exports correctly.
Author
Owner

@PrimoUomo89 commented on GitHub (Apr 15, 2025):

I was able to get past though I'm not sure why. I rewrote core/style.css to core/dist/index.css, which gave me the error, no specifier for ./dist/index.css. Then I changed it back and it was working...

<!-- gh-comment-id:2807358928 --> @PrimoUomo89 commented on GitHub (Apr 15, 2025): I was able to get past though I'm not sure why. I rewrote core/style.css to core/dist/index.css, which gave me the error, no specifier for ./dist/index.css. Then I changed it back and it was working...
Author
Owner

@arikchakma commented on GitHub (Apr 17, 2025):

So basically, if you see the dev,the first build takes some time if you open the app in that time it will crash. So you have to wait for the core to finish build then open the app.

<!-- gh-comment-id:2812241383 --> @arikchakma commented on GitHub (Apr 17, 2025): So basically, if you see the dev,the first build takes some time if you open the app in that time it will crash. So you have to wait for the core to finish build then open the app.
Author
Owner

@bernaferrari commented on GitHub (Apr 21, 2025):

it is weird for me, because even trying pnpm build first then pnpm dev It still fails.

<!-- gh-comment-id:2819626595 --> @bernaferrari commented on GitHub (Apr 21, 2025): it is weird for me, because even trying `pnpm build` first then `pnpm dev` It still fails.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/maily.to#292
No description provided.