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.

Angular not using scripts in angular-cli.json?

See original GitHub issue

I don’t think scripts are loading from angular-cli.json. I tried to add jquery, popper, and bootstrap js and they aren’t available. Also I can change them to invalid paths and get no errors…

https://stackblitz.com/edit/angular-bhzy2y?file=app%2Fapp-tooltip.directive.ts

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

4reactions
sevevescommented, Apr 18, 2018

Hm I don’t think so but I could write it together as soon as the stackblitz guys are back from ngconf 😃

0reactions
abhilash1incommented, Nov 8, 2019

Stackblitz does not support all the features of angular-cli.json. And linking from node_modules is not working because stackblitz does not have this folder. What you can do is adding jquery, popper and bootstrap (f.e. from a CDN) via external dependencies right below the npm packages in the left side menu.

I don’t see “external dependencies right below the npm packages in the left side menu.” (screenshot). I only see a place to add NPM packages.

Has something changed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scripts don't load from .angular-cli.json - Stack Overflow
I had a similar issue with an angular-cli app. ... index.html script includes and then added the scripts section later leading to the...
Read more >
Angular workspace configuration
The JSON schemas for the default schematics used by the Angular CLI to create projects and parts of projects are collected in the...
Read more >
Working With 3rd-Party Script and CSS In Angular
Angular.json is a file with all the settings of our Angular project, and also it helps us to work with 3rd party libraries...
Read more >
Adding CSS and JavaScript to an Angular CLI Project
One reason is because when we build the code for production, the CLI removes any code from the bundle that isn't being used....
Read more >
I don't find .angular-cli.json in new version angul
node_modules/@angular/cli/lib/config/schema.json\, \version\: 1, ... In it, in styles and scripts arrays, you're not pointing from src directory, ...
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