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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular.json scripts are not loading #28041

DenisSemionov opened this Issue Jan 10, 2019 · 2 comments


None yet
2 participants
Copy link

DenisSemionov commented Jan 10, 2019

馃悶 bug report


angular.json "scripts" are not loading for some reason


"scripts": [

but when I import scripts right into component where I use them, it WORKS

import '../../../../../../../../../node_modules/codemirror/mode/css/css.js';
import '../../../../../../../../../node_modules/codemirror/mode/javascript/javascript.js';
import '../../../../../../../../../node_modules/codemirror/mode/htmlmixed/htmlmixed.js';

I don't like this 'workaround' to be fair, I tried to search why scripts are not loaded from angular.json, but haven't found any solutions except very bad 'workarounds'

馃實 Your Environment

Angular Version:

Angular CLI: 7.1.4
Node: 10.7.0
OS: win32 x64
Angular: 7.1.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                            Version
@angular-devkit/architect          0.11.4
@angular-devkit/build-angular      0.11.4
@angular-devkit/build-ng-packagr   0.11.4
@angular-devkit/build-optimizer    0.11.4
@angular-devkit/build-webpack      0.11.4
@angular-devkit/core               7.1.4
@angular-devkit/schematics         7.1.4
@angular/cdk                       7.2.0
@angular/flex-layout               7.0.0-beta.22
@angular/material                  7.2.0
@ngtools/json-schema               1.1.0
@ngtools/webpack                   7.1.4
@schematics/angular                7.1.4
@schematics/update                 0.11.4
ng-packagr                         4.4.5
rxjs                               6.3.3
typescript                         3.1.6
webpack                            4.23.1

This comment has been minimized.

Copy link

DenisSemionov commented Jan 10, 2019

Ok, explain me why I get dislikes but no answer? If it's so obvious, do a favor and answer this question


This comment has been minimized.

Copy link

ericmartinezr commented Jan 10, 2019

Please open angular-cli issues in its repo 馃憤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment