question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

package.json in guide/elements download

See original GitHub issue

📚 Docs or angular.io bug report

Description

In the guide about angular/elements there is an example, the issue is related to the code available for download in the end of the session https://angular.io/guide/elements#example-a-popup-service.

While the code itself works, the package.json needs to be updated.

🔬 Minimal Reproduction

  1. Download the code from the the link int the page, pointing to https://angular.io/generated/zips/elements/elements.zip.
  2. Extract the zip in a new folder.
  3. npm install
  4. ng serve

The package @angular/elements is missing. the package "angular-in-memory-web-api": "github:brandonroberts/in-memory-web-api-bazel#50a34d8" require versions < 8.0.0 of some angular packages, it seems that in the mean time the package was added to npm, and now it can be changed to "angular-in-memory-web-api": "0.8.0"

What’s the affected URL?**

https://angular.io/guide/elements

I have noticed a comment in the github source about needing polyfills but in the page it was not clear if any additional step would be required after downloading. Since it is a guide it is supposed to be followed by beginners, and I believed it was something that worth to report.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
yallen011commented, Oct 23, 2019

Can I take a stab at the @angular/elements dependency fix. The explanation given by @gkalpak of what needs to be done seems clear and I would love to do this as my first open source contribution, as well as for Hacktoberfest 😄

1reaction
yallen011commented, Oct 25, 2019

@gkalpak @kapunahelewong ok, great. working on it

Read more comments on GitHub >

github_iconTop Results From Across the Web

package.json - npm Docs
Description. This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just...
Read more >
package.json Quick Start Guide | phoenixNAP KB
Learn how the package.json file lets you automatically manage various Node.js package metadata, such as project dependencies in this guide.
Read more >
How to update each dependency in package.json to the latest ...
json versions. Then it's just npm install and it will download new versions. – RaphaelDDL. Jan 15, 2014 at 13:44.
Read more >
How To Use Node.js Modules with npm and package.json
json file. You will then use it to keep track of all the modules you install in your project. Finally, you will list...
Read more >
Create a package.json File | heynode.com
json file using npm init , but you can also create one automatically. Creating a package.json file is typically the first step in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found