Skip to content
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

Angular not using scripts in angular-cli.json? #407

Closed
JasonGoemaat opened this issue Apr 14, 2018 · 8 comments
Closed

Angular not using scripts in angular-cli.json? #407

JasonGoemaat opened this issue Apr 14, 2018 · 8 comments

Comments

@JasonGoemaat
Copy link

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

@seveves
Copy link
Collaborator

seveves commented Apr 16, 2018

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.

@pamo
Copy link

pamo commented Apr 17, 2018

@seveves is there somewhere we can see which angular-cli.json features are currently supported by StackBlitz?

@seveves
Copy link
Collaborator

seveves commented 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 :)

@Antoniossss
Copy link

But including styles via angular.json#styles works (../node_module/----/somestyles.css), so I would expect for stripts to work as well.

@markstein
Copy link

@Antoniossss are you sure that it work so? For me, with styles that don't work too.

@romelgomez
Copy link

romelgomez commented Jan 7, 2019

I trying to add intlTelInput in angular.json and don't work for me

option 1
   
            "scripts": [
              "../node_modules/intl-tel-input/build/js/utils.js",
              "../node_modules/intl-tel-input/build/js/intlTelInput.js"
            ]

option 2


            "scripts": [
              "/node_modules/intl-tel-input/build/js/utils.js",
              "/node_modules/intl-tel-input/build/js/intlTelInput.js"
            ]

option 3

            "scripts": [
              "node_modules/intl-tel-input/build/js/utils.js",
              "node_modules/intl-tel-input/build/js/intlTelInput.js"
            ]

Error: intlTelInput is not defined

@abhilash1in
Copy link

abhilash1in commented 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?

@kc0tlh
Copy link
Collaborator

kc0tlh commented Aug 23, 2023

This should be possible in our new VS Code editor, available here! Feel free to re-open if I am mistaken.

@kc0tlh kc0tlh closed this as completed Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants