Closed jauschalley closed 2 years ago
This is on Windows? Where is the repo located, is it really deep in the directory structure? Windows has a limit of 260 chars in a path name for many operations. The partial path it's complaining about is /app/node_modules/sass-embedded/dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded
which is 90 chars. So if the path above that point is more than 170 chars it might cause an error where it doesn't see a file or path that is obviously there.
EDIT: Microsoft docs on the issue and a Windows 10 registry option to enable longer paths: https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation
Thanks for taking a look. I've been running this in a Docker container via a MacOS. It's a pretty simple setup as the app is brand new: Dockerfile:
# base image
FROM node:16.10.0-alpine
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# install and cache app dependencies
COPY package.json /app/package.json
RUN npm install
# start app
CMD ["npm", "start"]
This is possibly related to a bug in the theme files in USWDS 3.0.0
that could cause an init
compile to fail. Can you try again with USWDS 3.0.1
and see if it has any effect?
@thisisdano Thanks for the tip. I installed the patch but it did not resolve the issue. The readout is the same as before.
OK, thanks — we'll keep at it
This case looks very similar, but is unresolved AFAICT: https://issues.joomla.org/tracker/joomla-cms/33170#event-602508
What kind of Mac is this? Is it an M1?
I'm on the old intel core 7 (2019) but this issue was repeated on the various macs of my coworkers.
Related to #20.
@jauschalley could you try the fix I did in https://github.com/uswds/uswds-compile/pull/23
We are also having an issue compiling inside docker and the issue appears to be with the sass-embedded node module.
Can close in favor of https://github.com/uswds/uswds-compile/issues/32
My team is having trouble with the initial installation of USWDS 3.0 with React 18 and Node 16.10. When running
npx gulp init
We are dying on the following error though the directory it is claiming is missing is definitely in the correct location;Here is our Gulpfile
Our package.json;
This is a brand new application so there isn't much else going on. Let me know if you'd like more details.