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
Issue when building on windows when repository is on a different drive than node js temp folder
to see issue reproduction repository MUST be checked out on windows on a different drive than where nodejs is installed/running (for the purposes of this test I have been using d: drive - nodejs will use the user temp folder located on c: drive)
steps after cloning the repo: npm ci npm run build
the following error appears:
$ npm run build
> [email protected] build D:\dev\tailwindcss_issue_reproduction
> ember build --environment=production
Running without permission to symlink will degrade build performance.
See https://cli.emberjs.com/release/appendix/windows/ for details.
Environment: production
- building... [PostcssCompiler]
warn - You have enabled the JIT engine which is currently in preview.
warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time.
cleaning up...
Build Error (PostcssCompiler)
ENOENT: no such file or directory, stat '/Users/<username>/AppData/Local/Temp/broccoli-164808k3ehFsfMVgY/out-210-broccoli_merge_trees_full_application//app/styles/app.css'
to track down what was happening debugged the build pipeline and discovered the error was thrown from within
the path from line 232 gets read as /Users/<username>/AppData/Local/Temp/broccoli-164808k3ehFsfMVgY/out-210-broccoli_merge_trees_full_application//app/styles/app.css
instead of c:/Users/<username>/AppData/Local/Temp/broccoli-164808k3ehFsfMVgY/out-210-broccoli_merge_trees_full_application//app/styles/app.css
this causes fs.statSync to call toNamespacedPath on the path making it point to d:/Users/<username>/AppData/Local/Temp/broccoli-164808k3ehFsfMVgY/out-210-broccoli_merge_trees_full_application//app/styles/app.css
where the file rightfully doesn't exist and throws the error
using .href instead of .pathname resolves this issue
The text was updated successfully, but these errors were encountered:
void-mAlex
added a commit
to void-mAlex/tailwindcss
that referenced
this issue
Apr 11, 2021
What version of Tailwind CSS are you using?
v2.1.1
What build tool (or framework if it abstracts the build tool) are you using?
postcss + ember-cli
What version of Node.js are you using?
14.15.4
What browser are you using?
N/A
What operating system are you using?
Windows
Reproduction repository
https://github.com/void-mAlex/tailwindcss_issue_reproduction
Describe your issue
Issue when building on windows when repository is on a different drive than node js temp folder
to see issue reproduction repository MUST be checked out on windows on a different drive than where nodejs is installed/running (for the purposes of this test I have been using
d:
drive - nodejs will use the user temp folder located on c: drive)steps after cloning the repo:
npm ci
npm run build
the following error appears:
to track down what was happening debugged the build pipeline and discovered the error was thrown from within
tailwindcss/jit/lib/setupContext.js
Lines 232 to 233 in e721ace
the path from line 232 gets read as
/Users/<username>/AppData/Local/Temp/broccoli-164808k3ehFsfMVgY/out-210-broccoli_merge_trees_full_application//app/styles/app.css
instead of
c:
/Users/<username>/AppData/Local/Temp/broccoli-164808k3ehFsfMVgY/out-210-broccoli_merge_trees_full_application//app/styles/app.css
this causes fs.statSync to call toNamespacedPath on the path making it point to
d:
/Users/<username>/AppData/Local/Temp/broccoli-164808k3ehFsfMVgY/out-210-broccoli_merge_trees_full_application//app/styles/app.css
where the file rightfully doesn't exist and throws the error
using .href instead of
.pathname
resolves this issueThe text was updated successfully, but these errors were encountered: