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
ERROR in C:/Users/thoma/OneDrive/Documents/devel/linear/node_modules/.cache/mdx.macro/icloud.c3ec31aebc.mdx.js
Module not found: Error: Can't resolve 'C:Users homaOneDriveDocumentsdevellinearpackagesarticleicloud.mdx' in 'C:\Users\thoma\OneDrive\Documents\devel\linear\node_modules\.cache\mdx.macro'
I tracked this down to a generated line that looks like this (in the cache):
It looks like some part of mdx.macro is incorrectly processing windows slashes as escapes.
I'm guessing that what is happening here is that mdx.macro generates some code via concatenation, rather than via AST manipulation, so this line is generated by:
Using mdx.macro on Windows gets me:
I tracked this down to a generated line that looks like this (in the cache):
It looks like some part of mdx.macro is incorrectly processing windows slashes as escapes.
I'm guessing that what is happening here is that mdx.macro generates some code via concatenation, rather than via AST manipulation, so this line is generated by:
https://github.com/frontarm/mdx-util/blob/master/packages/mdx.macro/mdx.macro.js#L123
then converted to an AST and transformed here, like this:
https://github.com/frontarm/mdx-util/blob/master/packages/mdx.macro/mdx.macro.js#L129
I imagine what's going on here is that injecting the import via string concatenation on Windows is giving us something like:
which, after transformation by babel ends up being:
The absolute quickest and dirtiest we can do here is just to escape all
\
.The text was updated successfully, but these errors were encountered: