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
{{ message }}
Repository navigation
preserveModulesRoot of vite configuration file is invalid in windows #6509
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Activity
sapphi-red commentedon Jul 10, 2022
This seems to be an upstream issue.
rollup/rollup#4496
cleverpp commentedon Jul 28, 2022
+1, i have same problem。
after debugging, I found that it is caused by the following code
at 'rollup/src/utils/options/normalizeOutputOptions.ts'
but, at ''src/chunk.ts" 中
currentPath not resolve, but preserveModulesRoot had resolve, so in windows platform,currentPath.startsWith(preserveModulesRoot) always be false。
Tanimodori commentedon Aug 2, 2022
This is due to
vitenormalized the slashs whilerollupleaves it platform-dependent. See the complete comment here: rollup/rollup#4591 (comment)Tanimodori commentedon Aug 11, 2022
This issue is fixed in rollup 2.77.3