Replies: 1 comment 7 replies
-
You need to have |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've been running into a issue where it seems like a path to a resource is losing its backslashes on Windows. It seems like a classic escaping issue but attempts to work around/fix the path haven't worked out. This very well maybe a fault with something in https://github.com/devongovett/unplugin-parcel-macros but I've hit a wall debugging walking through the stack trace and would appreciate some pointers.
To reproduce:
repository: https://github.com/LFDanLu/s2-test-app
Using Git Bash on Windows. node version 18.18.2
Locally, I've confirmed that the output of the unplugin-macro returns code that looks something like
where it looks like the path is properly escaped. However, as I stepped through the stack I eventually ended up in Compilation where the request field in the dependencies shows that it has become
request: 'C:Usersdl164OneDriveDocumentsdevempty-projectsrcApp.js.macro-fb0d4180853462d3bcb94480fb3b2b62c62519e0b35074e4a51d1c603706c075.css'
at which I got stuck trying to figure out where the dependencies were coming from.I verified that modifying the path here changed what the request field became, but attempting to use posix separators or further escaping all cause it to fail at an earlier step (not super sure about this but it no longer creates a NormalModule with a macro path that I was previously logging against):
Beta Was this translation helpful? Give feedback.
All reactions