-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install/build the project on Windows #909
Comments
Hi @olliejm thanks for this issue. We definitely don't do enough work with the repo on Windows, so my apologies that we allowed this to get into the repo. Not being "in office" chasing this repro and getting an actual fix may take longer than normal, but hopefully we can get this corrected for you soon! |
No worries, thanks for looking into it. I'll be continuing to look into it myself tomorrow, so will update the issue if I make any progress also.
…-------- Original Message --------
On 28 Sep 2020, 17:26, Westbrook Johnson wrote:
Hi ***@***.***(https://github.com/olliejm) thanks for this issue. We definitely don't do enough work with the repo on Windows, so my apologies that we allowed this to get into the repo. Not being "in office" chasing this repro and getting an actual fix may take longer than normal, but hopefully we can get this corrected for you soon!
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#909 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ADBHWKCX2RBQWDD3RA6Z63DSIC2LFANCNFSM4R4WTCLA).
|
The first error is because of this: Must become: const { default: spectrumConfig } = await import(`file://${configPath}`); There's then a problem with running prettier in the package.json scripts, each script which does this: https://github.com/adobe/spectrum-web-components/blob/main/package.json#L21 Needs e.g. That still leaves the gulp css issue which I'm looking into. I also didn't check yet if these changes break anything back on a macOS/Linux environment. Maybe also worth noting that the use of |
The gulp command error was because of the use of platform-specific path separator in the function It was resolved by using function whichDst(file, t) {
const dirname = path.dirname(file.path);
const component = dirname
.split(`packages${path.sep}`)[1]
.split(path.sep)[0];
const name = file.relative.split(path.sep)[2];
const base = file.base;
file.path = path.join(base, name);
t.through(gulp.dest, [
`packages${path.sep}${component}${path.sep}src${path.sep}`,
]);
} I still now have one further problem, with the command error TS5083: Cannot read file 'C:/Users/ojm/source/repos/spectrum-web-components/packages/**/tsconfig.json'. I presume it's something to do with the globs not being interpreted correctly on Windows - though I am still using git bash |
Expected Behaviour
Cloning the repo and running
yarn
will install the repo and run post-install scripts ready for development. Additionally the thegulp css
command will perform the CSS file wrapping.Actual Behaviour
An error occurs in the
process-spectrum-css.js
post-install script, printing manyUnhandledPromiseRejectionWarning: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader
. When I separately try to runyarn build
I get another errorTypeError in plugin "gulp-wrap" Message: Cannot read property 'split' of undefined
.These problems do not occur on macOS.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
yarn
oryarn build
, to find each of the two problems respectively.Platform and Version
Microsoft Windows Version 10.0.17763
Node v12.18.4
Yarn 1.22.5
Sample Code that illustrates the problem
Logs taken while reproducing problem
Command line output of first issue:
The gulp command output is:
The text was updated successfully, but these errors were encountered: