-
Notifications
You must be signed in to change notification settings - Fork 997
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
[Bug?]: Studio - Mailer Template Renderer not picking up installed Renderers (Windows/non-WSL) #11655
Comments
@jacebenson The server file should start the watchers which then will resync: which will look for your mailer config in dist snd upsert th renderers: Perhaps they don't populate initially? Could you try while studio is running to make some modification to @Josh-Walker-GM any other ideas? |
Another thing to try @jacebenson is to open up the GraphiQL explorer on Studio -- not the explorer in the Studio - bu there one running within Studio on its port -- the one the web app talks to -- and manually invoke the That "should" refetch and resync. |
Okay I tried calling that mutation from the :4318 studio app and I got no change.
However when i run that mutation, i get this error on my studio terminal Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:249:11)
at defaultLoad (node:internal/modules/esm/load:130:3)
at ModuleLoader.load (node:internal/modules/esm/loader:553:13)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:434:56)
at new ModuleJob (node:internal/modules/esm/module_job:71:27)
at #createModuleJob (node:internal/modules/esm/loader:447:17)
at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:259:34)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:472:23) {
code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
} This feels like we're getting somewhere. |
^^^ @Josh-Walker-GM going to need your help/memory here about what might be going on with Studio renderers. |
I tried this on my ubuntu laptop and ... it just works. I'm not sure where the file loader is loading the file but I believe this is a windows only issue. |
By the way, I'm seeing this same behavior as well. Note that I'm on Windows as well. I do see the following warning when starting Studio as well, although the features (I haven't tested them all) other than the selection of renderers appear to work.
I may have seen a path type error in the console at some point, but can't replicate the console error regarding the path at this point. |
Maybe related to #10752 |
I see, this is now looking like an issue with Windows specifically unless running with WSL. That help us narrow it down. Thanks! |
As I read through https://github.com/paulmillr/chokidar more, looks like v3 had issues with watching files in Windows and v4 has gotten rid glob use altogether. Might be the cause. Workaround now could be to use WSL until Studio work resumes and perhaps upgrade chokidar to v4? @Josh-Walker-GM thoughts? |
I can confirm, similar to @10752, that I am getting the following error in the console log:
|
What's not working?
I'm trying to use the Redwood Studio to develop some email messages, and I came across this issue I mentioned in Discord.
I decided to try to recreate the issue in new setup and see if I can recreate it simply. It reproduces for me. I tried this with both JS and TS. Fails the same way.
The issue is I cannot pick the renderer in the Redwood Studio.
How do we reproduce the bug?
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: