You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it looks like outputBasePath was run through path.resolve somewhere (turning / into \ on Windows) while path was not. Therefore, path.replace(outputBasePath, "") does nothing as the separators are different...
A fix would be to run the variable path through resolve to fix the separators.
The text was updated successfully, but these errors were encountered:
Windows OS:
npm create jsx-email npm run build # which will run: email build ./templates
Expected Behavior
The templates are built.
Actual Behavior
The following error:
Additional Information
I investigated the problem and the problem is in this line:
jsx-email/packages/jsx-email/src/cli/commands/build.ts
Line 105 in f77ece7
The call
path.replace(outputBasePath, '')
uses the following variables with the content:path
:C:/Users/Thomas/AppData/Local/Temp/jsx-email/1715164607648/Welcome.js
outputBasePath
:C:\Users\Thomas\AppData\Local\Temp\jsx-email\1715164607648
So it looks like
outputBasePath
was run throughpath.resolve
somewhere (turning/
into\
on Windows) whilepath
was not. Therefore,path.replace(outputBasePath, "")
does nothing as the separators are different...A fix would be to run the variable
path
throughresolve
to fix the separators.The text was updated successfully, but these errors were encountered: