Closed jpelton-stroud closed 4 years ago
Met the same issue.
A quick temporary workaround: downgrade "@angular/material-examples": "angular/material2-docs-content#8.1.x"
to "@angular/material-examples": "angular/material2-docs-content#8.0.x"
in package.json.
So looks there are some issues in "angular/material2-docs-content#8.1.x"
So looks there are some issues in
"angular/material2-docs-content#8.1.x"
Manually setting back to 8.0.x and reinstalling did, in fact, get the install running.
Update: I advise against attempting this hack. I'm using yarn and Docker, and having problems with it still. But I did test this on a vanilla Angular project having 'angular/material-example' as a dependency and it works.
Here is a temporary hack. Replace the current @angular/material-examples
dependency in package.json, with this:
"@angular/material-examples": "https://codeload.github.com/angular/material2-docs-content/tar.gz/7b223fbc784d9812f9c7ef523e5332cf5ba91d5d"
Using yarn, the lock file will read this after being installed for @angular/material-examples
:
"@angular/material-examples@https://codeload.github.com/angular/material2-docs-content/tar.gz/7b223fbc784d9812f9c7ef523e5332cf5ba91d5d":
version "8.1.4-4eec07d"
resolved "https://codeload.github.com/angular/material2-docs-content/tar.gz/7b223fbc784d9812f9c7ef523e5332cf5ba91d5d#3f1c4bac4cb7b62097f8665ecbce9e5230913ce1"
dependencies:
tslib "^1.7.1"
The current value in package.json, for @angular/material-examples
is: angular/material2-docs-content#8.1.x
. This is a GitHub url that gets resolved to something similar to what I have above. What I have above is the latest resolved value for 8.1.x branch. It seems that perhaps the service that does the mapping has not worked in about 20 days. This was the last commit that seems to not have this issue.
I believe that this has been resolved as I cannot reproduce it today. Please confirm so that we can close this or provide additional reproduction steps for investigation.
we're doing it live! From a fresh wipe/install of the VM (i'm on a chromebook pixel):
command -v nvm
confirms successful install;nvm install --lts
-> Now using node v10.16.3 (npm v6.9.0)--no-install-recommends
flag for nvm users;yarn install
now, if I stop here and run yarn start
, the local dev server builds and compiles w/o issue, and http://localhost:4200/ goes straight to the main page. However, the install guide says...Update to the latest version of the docs-content and examples
So I stop the dev server and yarn upgrade @angular/material-examples
:
yarn upgrade v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @angular/cdk-experimental@8.1.3" has incorrect peer dependency "@angular/cdk@8.1.3".
warning " > @angular/material-experimental@8.1.3" has incorrect peer dependency "@angular/material@8.1.3".
warning " > @angular/material-experimental@8.1.3" has incorrect peer dependency "material components-web@^3.0.0".
warning " > @angular/material-examples@8.1.4-4eec07d" has incorrect peer dependency "@angular/cdk@8.1.4-4eec07d".
warning " > @angular/material-examples@8.1.4-4eec07d" has incorrect peer dependency "@angular/cdk-experimental@8.1.4-4eec07d".
warning " > @angular/material-examples@8.1.4-4eec07d" has incorrect peer dependency "@angular/material@8.1.4-4eec07d".
warning " > @angular/material-examples@8.1.4-4eec07d" has incorrect peer dependency "@angular/material-experimental@8.1.4-4eec07d".
warning " > @angular/material-examples@8.1.4-4eec07d" has incorrect peer dependency "@angular/material-moment-adapter@8.1.4-4eec07d".
[4/4] Rebuilding all packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ @angular/material-examples@8.1.4-4eec07d
info All dependencies
└─ @angular/material-examples@8.1.4-4eec07d
Done in 14.40s.
and now yarn start
results in:
ERROR in Unexpected value 'undefined' imported by the module 'ExampleModule in /home/jpstroud/material.angular.io/node_modules/@angular/material examples/examples_public_index.d.ts'
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
ℹ 「wdm」: Failed to compile.
So yeah...no luck (unless I really am doing something wrong...).
ERROR in Unexpected value 'undefined' imported by the module 'ExampleModule in /home/jpstroud/material.angular.io/node_modules/@angular/material examples/examples_public_index.d.ts'
This is a new error that I just hit as well due to some recent merges.
Hopefully PR https://github.com/angular/material.angular.io/pull/640 will help resolve this.
Well PR #640 ran into https://github.com/angular/components/issues/17264.
PR #641 should fix this temporarily.
Am I doing it wrong?
Build fails with
ERROR in Unexpected value 'undefined' imported by the module 'ExampleModule in /home/jpstroud/material.angular.io/node_modules/@angular/material-examples/examples_public_index.d.ts'
after fresh clone when following the Development Setup Guide.FWIW, I'm running this on a Pixelbook; I haven't yet had any problems w/ running my own project code, but this is my first time w/ yarn, specifically.
yarn start
output:ng --version
output:yarn e2e
output: