-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError, Windows Support #187
Comments
Hi @Venipa , sorry to hear that you are experiencing a problem. Could I ask you to check what the size of your
Thanks for using mailing! And if you have a moment to tell us a bit more about how you're using mailing, we'd love to hear more about it in this thread: #121 |
isnt it better to use process.cwd() instead of "." ? also i've tried running mailing in codespaces (linux) and it works there |
@Venipa thanks, I'm not sure if process.cwd() would behave differently from . but it is worth a shot. I made a beta version "0.7.9-next.0" that does just that which you can use like this: would you let us know if it solves your problem? if not, can you let me know if you have packages installed globally? we don't currently look for node_modules outside of the project and its parent directories, but that could be an issue if you are importing packages that live in a global node_module directory that is outside of the set of all parent directories from your project root. Thanks! |
I'm getting the same error on $ npx mailing
mailing starting preview server
event - compiled client and server successfully in 3.4s (175 modules)
mailing watching for changes to src\emails
mailing running preview at http://localhost:3883/
wait - compiling / (client and server)...
error - ./src/moduleManifest.js
Module not found: Can't resolve './lib/beautify' in 'C:\Users\leeha\Development\poetz-lake-house\.mailing\src'
wait - compiling /_error (client and server)...
error - ./src/moduleManifest.js
Module not found: Can't resolve './lib/beautify' in 'C:\Users\leeha\Development\poetz-lake-house\.mailing\src'
mailing 500 / 6482ms
mailing 500 /favicon.ico 21ms mailing.config.json {
"typescript": true,
"emailsDir": "./src/emails",
"outDir": "./previews_html",
"anonymousId": "58d2f4cc-0d24-45bb-b522-3a091f9b4c2d"
}
|
I am also getting this error on windows machine did anyone find out a solution? |
Unfortunately, I have not found a solution to this, but I can give you some notes on what I had tried debugging:
It may have to do with the way that the .mailing folder includes its node_modules -- there is no directory
Sorry I don't know a concrete next step here, but hopefully that helps your debugging? |
+1 facing the same issue here |
Mailing does not currently run on Windows, however we would love a PR that fixes that. I am closing this issue for now, but #172 is our ticket to support Windows. Pull requests welcome! |
current semi fix is to use wsl for development |
Node: v16.16.0, 14.20.0, 18.9.0
Shell: PowerShell v5.1.19041.1682
While running the development server i get this error
also while running npx mailing i get this error upon start:
The text was updated successfully, but these errors were encountered: